- Home /
Multiple animation with One Trigger ?!!
I am new in Unity and programming.
I want that when touched this trigger I need more once animation of this zombie played for example first animation clip would be like run and second animation will attack me.
Answer by theANMATOR2b · Oct 15, 2016 at 04:49 AM
Here are two ways to solve this, disclaimer I'm not a programmer so there is probably several other ways to accomplish using code.
Option 1. Create a 3rd animation that is the run and attack animation combined with external 3D software. Set this animation up in mecanim to only play when the trigger is touched, instead of playing the run cycle and the attack animation.
Option 2. Duplicate the run and attack animation in the state machine. Use these duplicated animations to play only when the trigger is touched. The original animations will play normally - when the character needs to run, and when the character needs to attack.
Thanks So $$anonymous$$uch Pro.. The Problem Solved .. Thank You Again
Your answer
Follow this Question
Related Questions
Can I make animations snap to a frame? 1 Answer
Mechanim trigger problem 1 Answer
Initiate Animation 0 Answers
play a door animation with collider 1 Answer