Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Animation State exported from FBX not recognized in Animation Behaviour

Discussion in 'Animation' started by SteveWolligandt, Jan 19, 2015.

  1. SteveWolligandt


    Oct 22, 2013
    Hey guy!
    I have the following scenario:

    I got a .fbx file with an animation clip included. I exported this file by selecting the animation in the inspector and pressing cmd+d so i got the animation clip outside of the .fbx file. Then I added the animation clip in the Animation field and the Animations array of my Animation Behaviour:
    Bildschirmfoto 2015-01-19 um 10.23.15.png

    The animation itself works pretty well. The Dopesheet has its keypoints an the animation also plays:
    Bildschirmfoto 2015-01-19 um 10.24.32.png

    But when i do the following the counter stays at zero but GetClipCount says there is one clip:

    nameState = new string[curAnim.GetClipCount()];
    int c = 0;
    foreach(AnimationState state in curAnim) {
    nameState[c] =;

    Has anyone an idea where there could be the problem?
  2. SteveWolligandt


    Oct 22, 2013
    I have found the solution:
    The Animation Type of my AnimationClip was set to 2 but it has to be set to 1. The Animation Behaviour seems to be deprecated all imported AnimationClips are automatically set to 2.
    To change it to 1 select the clip, rightclick on the Inspector Tab and choose Debug.
    Bildschirmfoto 2015-01-20 um 14.05.10.png

    Now you can see the Animation Type variable.
    Bildschirmfoto 2015-01-20 um 14.05.15.png
    theANMATOR2b likes this.