Search Unity

Need help with Argument Exception

Discussion in 'Animation' started by nightwolf201295, Jul 18, 2017.

  1. nightwolf201295

    nightwolf201295

    Joined:
    Dec 21, 2015
    Posts:
    23
    i got this error when click on Animator, please help me

    upload_2017-7-17_21-49-15.png
     
  2. nightwolf201295

    nightwolf201295

    Joined:
    Dec 21, 2015
    Posts:
    23
    please, anyone help me
     
  3. FMark92

    FMark92

    Joined:
    May 18, 2017
    Posts:
    1,243
    Do you have no animations in it, by any chance?
     
  4. nightwolf201295

    nightwolf201295

    Joined:
    Dec 21, 2015
    Posts:
    23
    i created all animation, it just happened recently and i don't know why
     
  5. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,338
    Your animator controller's busted.

    I've seen this happen before! I sent a bug report, and it got accepted. Haven't heard anything back since.

    Essentially, I got it from dragging a sub state machine to the layer above itself, where a sub state machine had the same name. That caused two machines to have the same name, which the animator doesn't handle.

    You can fix it by opening your animator controller in a text editor. There will probably be two AnimatorStateMachine or AnimatorState entries with the same value for m_Name. Change one of them, and Unity should be able to handle it again.

    Edit: hey, I found the bug report video I sent to Unity. Testing in 2017, it seems fixed, but I guess there's a similar bug around.
     
    nightwolf201295 likes this.
  6. nightwolf201295

    nightwolf201295

    Joined:
    Dec 21, 2015
    Posts:
    23
    hey thanks, i was waiting for an answer like this, thank you very much, by the way, can you check my Animator file for me?
     
    Last edited: Jul 20, 2017
  7. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,338
    Nope!
     
    nightwolf201295 likes this.