Animation won't play :(

Hey Folks :slight_smile:

I made an animation with the unity graph editor … but I can’t get it to run through :frowning:

here is what I used to start the animation:

function Awake()
	{
		animation.Play("bamboo_swing_02");
		animation.wrapMode = WrapMode.Loop;
	}

Do you have an idea where I made a mistake?

Cheers!

Dawnreaver

Nevermind I got it working.