Hello Chris,
I could not find a way (through action lists) to change the weight of an Animator layer.
Say i want the player to pick up a box. When this happen, rather than triggering a custom animation, i want instead to set the weight of the masked layer containing the additive pose to 1.
My player is 3D and is using Unity Mecanim's animation system.
Thanks!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Here's a custom Action, Player: Set layer weight, that you can plug into your Actions Manager.
Name the file ActionPlayerWeight.cs, and place in a new Assets folder.
Thanks Chris
Welcome to the community, @Voxxy.
It's my fault - I made a typo in the code. I've corrected the post now.
It should, yes.
Hi there, thanks for the piece of code, it was super useful.
I used it as a base and added some stuff, like making it work on any character, as well as adding a blend time. Here it is in case that can be useful to someone who passes by this thread: