i have some npc that doesn't have all the animations. but i think i've added a bunch of them but i still get
Animator.GotoState: State could not be found
UnityEngine.Animator:Play(String, Int32)
AnimEngine_SpritesUnity:PlayStandardAnim(String, Boolean) (at Assets/AdventureCreator/Scripts/Animation/AnimEngine_SpritesUnity.cs:589)
AnimEngine_SpritesUnity:PlayIdle() (at Assets/AdventureCreator/Scripts/Animation/AnimEngine_SpritesUnity.cs:536)
AC.Char:AnimUpdate() (at Assets/AdventureCreator/Scripts/Character/Char.cs:410)
AC.Char:_FixedUpdate() (at Assets/AdventureCreator/Scripts/Character/Char.cs:242)
AC.NPC:FixedUpdate() (at Assets/AdventureCreator/Scripts/Character/NPC.cs:64)
is there a way to extend this error so i'd know which direction is actually the one missing?
Comments
This can't be done in the official release, because it would cause too much slowdown to display a log for every animation call, but try this: move the Debug.LogError line (618) up to just above 614 (but within the brackets). It'll display the name of the animation it's about to play - if it fails immediately after, you'll know which one was the culprit. Just be sure to move the line back down again once you've found it.