I wonder how I can access the “speed” variable in Blend Tree through C#? Checked the docs but didn’t find anything relevant. Any suggestions? Thanks in advance.
Edit:
Attaching image for clarity:
[20454-how+to.png|20454]
I wonder how I can access the “speed” variable in Blend Tree through C#? Checked the docs but didn’t find anything relevant. Any suggestions? Thanks in advance.
Edit:
Attaching image for clarity:
[20454-how+to.png|20454]
Unfortunately, it seems that the speed of individual animator states (whether they be in a blend tree or atomic motion fields) is accessible only via the inspector and not through code at runtime.
You can set the overall Animator speed, or you could follow the workaround offered here: http://forum.unity3d.com/threads/160395-Mecanim-Change-animation-speed-of-specific-animation-or-layers