Default Animations is not playing again when the object is set inactive and made active again

In my game I have a default animation added through animator. The default Animation is now stops working after playing once. In a non looped Animation clip, When the Object is disabled by setting it’s SetActive false, then the default animation doesn’t play upon reactivating the object.
See the following package. When you open it in Unity 5.5 then Animation play fine but in Unity 5.6 Default animation plays only once.

I am having the same issue

I am having the same issue

I Got it !!!

use the void Awake() function on the void Update() Function


void Awake()

awake starts working when an object setactive’s true anytime

Happy Coding !!! :smiley: