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:
The animation itself works pretty well. The Dopesheet has its keypoints an the animation also plays:
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
= state.name;
c++;
}
Has anyone an idea where there could be the problem?