animator bug 5.6.1p1

Just want to keep you any fellow indie devs aware of a possible bug in 5.6.1p1. I don’t know how to consistently reproduce it but there is a possibility when you are making a prefab of an object that the animator component stops working properly. Basically it only plays a single animation then stops and won’t play anymore. The way I did this was to make a prefab of an object, let’s say objectA. Then duplicate it in scene view. Rename it objectB and make a prefab of this object as well. Then on instantiating objectA and objectB there is a chance that objectB’s animator malfunctions. I was able to do a workaround in editor by just updating the prefabs. However, although this worked in the editor, the next runtime build also exhibited the same error with the animator randomly stopping itself. No errors are thrown.

It’s a pretty bad bug so just throwing this out there as something to look for. I wish I had stuck with the 5.4 series, maybe this is Unity’s plan to get people to upgrade to the new plans lul.

1 Like

I tracked this down to an incompatibility between a canvas/ui script which is a child of the parent…if I make more progress on seeing what is causing the issue I will update the thread.