S
S
Sergey Panov2018-07-03 12:39:19
Unity
Sergey Panov, 2018-07-03 12:39:19

How to reset the animation to default when activating an object?

Good afternoon friends.
I have animations on a button. It lasts about 2 seconds. At the moment when it is played, the player can go to another section (and the panel becomes inactive), and when he returns to this panel again, the animation on the button does not work and the button itself is not pressed, because before it finishes, the panel becomes inactive. active.
How to correctly implement so that the animation is reset to default when the panel is activated? Or maybe there are some settings in the animation? Tell me please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question