- Home /
Help with animation
i have a character with animations. How do I set it so that when i press the spacebar he does the jump animation. or when i tell him to move he does the walk animation? please explain this in plain english.
Why don't you follow a unity tutorial? They're all pretty good with $$anonymous$$ching you animation
Answer by TaigaStudios · Jul 03, 2010 at 11:40 AM
I recommend you check in scriptreference for Animation class. It has a "play" component which can be used like this:
// Plays the walk animation - stops all other animations in the same layer animation.Play ("walk"); // Plays the walk animation - stops all other animations animation.Play ("walk", PlayMode.StopAll);
description: plays animation without any blending. ps.also check out the fps example project
Your answer
Follow this Question
Related Questions
animation wont play 3 Answers
can't play simple animation 2 Answers
Character Animation Assistance 1 Answer
Animations not playing 0 Answers
Unity thinks my animation is not attached, but it is. 2 Answers