- Home /
How to access animator parameter from script?
I'm able to set a parameter just fine by doing:
anim.SetBool("isBackTransition", true);
anim is a current instance of Animator object;
But how can I access the parameter current value?
I was hoping for something like this Convert.ToBoolean(anim.parameters["isBackTransition"]);
any tips are welcome thanks
Comment
Best Answer
Answer by VildNinja · Aug 16, 2015 at 09:10 PM
anim.GetBool("isBackTransition");
Remember to read the documentation: http://docs.unity3d.com/ScriptReference/Animator.html
Your answer

Follow this Question
Related Questions
2D Animation does not start 1 Answer
Coroutines and animation triggers 1 Answer
2D animator vs. Sprite Array? 1 Answer
Rough change of animation states 0 Answers
Apply Root Motion with Animator and Animation Made INSIDE Unity 0 Answers