Forum rules - please read before posting.

Animator.GotoState: State could not be found

edited March 2020 in Technical Q&A

Not sure what you need to see here Chris but this is a start...

i am not exactly sure what is causing this error but if i turn off the panel button use action list it does not error!
so some where in the action list i get this error and it i think it is the character animate play custom PressButton issue

if i get rid of the character animate action tinpot does not animate obviously but no error so the error exists in the play custom PressButton animation

As shown in screenshot i am using AC V1.70.4 & Unity 2019 2.21f1
Screenshots are as follows...
https://imgur.com/a/mybtBxV
https://imgur.com/a/tZ6A9Nl
https://imgur.com/a/9FePdgS

.I am getting the following error at 2:22:22 in your video...

Animator.GotoState: State could not be found
UnityEngine.Animator:CrossFade(String, Single, Int32)
AC.AnimEngine_Mecanim:ActionCharAnimProcess(ActionCharAnim, Boolean) (at Assets/AdventureCreator/Scripts/Animation/AnimEngine_Mecanim.cs:478)
AC.AnimEngine_Mecanim:ActionCharAnimRun(ActionCharAnim) (at Assets/AdventureCreator/Scripts/Animation/AnimEngine_Mecanim.cs:384)
AC.ActionCharAnim:Run() (at Assets/AdventureCreator/Scripts/Actions/ActionCharAnim.cs:109)
AC.d__34:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:377)
UnityEngine.MonoBehaviour:StartCoroutine(String, Object)
AC.ActionList:ProcessAction(Int32) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:327)
AC.ActionList:BeginActionList(Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:294)
AC.ActionList:Interact(Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:195)
AC.ActionList:Interact() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:158)
AC.d__32:MoveNext() (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:1439)
UnityEngine.MonoBehaviour:StartCoroutine(String, Object)
AC.PlayerInteraction:ClickButton(InteractionType, Int32, Int32, Hotspot) (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:1014)
AC.PlayerInteraction:ClickInteractionIcon(Menu, Int32) (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:2298)
AC.MenuInteraction:ProcessClick(Menu, Int32, MouseState) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuInteraction.cs:510)
AC.MenuElement:ProcessClickUI(Menu, Int32, MouseState) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuElement.cs:242)
AC.<>c__DisplayClass37_0:b__0() (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuElement.cs:209)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent()
AC.OptionalMouseInputModule:Process() (at Assets/AdventureCreator/Scripts/Menu/OptionalMouseInputModule.cs:158)
UnityEngine.EventSystems.EventSystem:Update()

Not sure what I missed.

Can you help please?

TinPot does not play PressButton animation instead this error occurs

Comments

  • I fixed my problem...i deleted the old action and re inserted the character animate! weird but like many things reboot is first line of defense!

  • i also just discovered that i was using the wrong player set up in the Charater Settings...i was using TinPot inside AdventureCreature/Demo/Resources/Tin Pot...prefab
    however the error went away when I dragged EL_TinPot prefab from My_3D_Game/Characters folder...
    this is what was wrong!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.