I’m deriving my custom ui class from UnityEngine.UI.Selectable.
And if I use Animation as Transition method for this control this error appears (5 times actually):
Animator has not been initialized.
UnityEngine.UI.Selectable:OnDisable()
If I remove UNITY_EDITOR directive this error appears 10 times.
Is there some solution to this?
Control is working fine, except for this error in console.
I really wish I knew what was causing this error. Could it be the Animator components in my prefabs, or Animator components in disabled UI elements in my scene? It always seems to be accompanied by when I do “Build and Run”, and it ends up showing some components that are disabled as enabled and everything in the editor is messed up (but fine in game), and to fix it in the editor I have to disable/enable the canvas and then it draws everything correctly.
I can’t pin it down solidly enough to even put in a bug report. There is just something seriously funky going on.
Initialization problem came up for me too…With zombie model Z@Walk from unity store. The warning was in the inspector window on animator for me. I kept using humanoid as my option when i should have used Legacy instead then the problem was solved…hope this helps …my zombie animations are working perfect now.