- Home /
How to access Blend Tree "speed" in Mecanim from C#
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:
Ummm, I'm pretty sure the OP is talking about the speed variable in a blend tree, exactly like they said in the question.... like the third column in?
@tanishimi: Wont it change the blending speed also?
Answer by tanoshimi · Jan 09, 2014 at 02:33 PM
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
That's sad. :( I wish it could be accessed through c#. Looking at your link.
Thanks for the help. :)