- Home /
Animator Not Playing on Button Click
I'm trying to play an animation on button click but it is not working. I followed this tutorial https://www.youtube.com/watch?v=4Rc3dlERSWg but I am not using a cube as the game object; I am using a canvas that holds game objects that switches between their IsActive (true) and IsActive(false) states to make the objects appear then disappear on the screen. I see the animation actually play in the Scene view when I click the animator's play button but not when I click on either the game play button on the button in game view (which is what I want it to do). I set the Animator Controller linked to my canvas that holds the game objects to the Canvas Controller and all the objects now show up yellow in the animator (not sure what that means). I'm sure I'm missing something small but I can't figure out what it is. Any help is greatly appreciated!
Your answer
Follow this Question
Related Questions
On Button Click Enable - Disable GameObject Through Inspector 1 Answer
DontDestory gameobject doesn't work on button click after a new scene loads 2 Answers
Problems with to many buttons 0 Answers
Lags when clicking so many times,Have problem when clicking so many times 1 Answer
Button animation state stays Pressed or Highlighted after disabling GameObject 0 Answers