Help with animations?

Hi,

I have imported a 3d character model with some animations, and I’m having trouble accessing them via scripting. Here’s an image of the object’s inspector:

Here’s the code I’m using to access the animation:

function Update () {
	
	animation[idle].speed = 1.0;
	animation.CrossFade(idle);
}

I get the error: "Unknown identifier: “idle”, however in the inspector the animation is clearly titled “idle”. What am I doing wrong?

CrossFade takes a string, so either idle must be a string variable that contains “idle”, or use “idle” directly.

–Eric

I used “idle” but I still get the same error…

Ah, never mind, got it. Thanks!