Search Issue Tracker

Duplicate

Votes

8

Found in

5.4.0b7

Issue ID

775274

Regression

No

[Animator] Animator.GotoState: State could not be found

Animation

-

Reproduction steps:
1) Open attached project
2) Open scene "Scene"
3) Enter play mode
--- You will see 2 warning in the console:
Animator.GotoState: State could not be found
UnityEngine.Animator:CrossFade(Int32, Single)
StateTest:Start() (at Assets/StateTest.cs:11)

Invalid Layer Index '-1'
UnityEngine.Animator:CrossFade(Int32, Single)
StateTest:Start() (at Assets/StateTest.

--- This line of code causes the warnings:
m_Animator.CrossFade(Animator.StringToHash("Substate.NestedSubstate.State"), 1f);

Comments (2)

  1. 36c65e3934745df83910152c6a077e4a?d=mm

    shubhamswaraj2021

    Aug 21, 2020 05:49

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  2. 78761f31655bbc87b6a2cf2e06fe49de?d=mm

    novaVision

    Mar 04, 2016 14:03

    Same happens in 5.3.2f1 version

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.