Question by
Ovanvelzen · May 04, 2017 at 01:30 PM ·
animationgameobjectanimatorunity5enable
Animation will only run once.
Hello, if I currently press on a UI button a disabled GameObject gets enabled. But when I attach a Animator to the GameObject (with a animation on it) it will only run the first time I enable the GameObject, but I want it to play the Animation every time the GameObject gets enabled. (The first time you press the button, the GameObject gets enabled and when you press it a second time it gets disabled)
Comment