- Home /
This question was
closed Oct 14, 2016 at 10:12 AM by
MIkeHewson86.
Question by
MIkeHewson86 · Oct 13, 2016 at 10:54 AM ·
animatorboolean
how do i turn animator on from script if bool is true
i am working in c# i would like to know how to turn on the animator component when a bool is true see picture.
animator-onoff.jpeg
(204.0 kB)
Comment
Answer by SohailBukhari · Oct 13, 2016 at 01:59 PM
@username get the gameobject on which your animator component attached the make it enable or disable. Or take public Animator anim; anim.enabled = false;
Follow this Question
Related Questions
how to turn animator on if bool = true 2 Answers
Jump animation anticipation 2 Answers
Double collision on "ground" tagged object results in player thinking they're in air? 1 Answer
2D Animation does not start 1 Answer
Error : Animator has not been initialized. UnityEngine.Animator:SetBool(String, Boolean) 1 Answer