- Home /
Touch button to transition through Animations
Purpose: Press attack button to transition from Idle animation to Attack animation.
I am not yet competent enough in the Unity language to research efficiently quite yet. If anyone could point me in the right direction by providing keywords I will need to know will be much appreciated. I am currently aimlessly watching tutorials and researching questions but there is so much information to narrow down.
Picture of unity project on Android Phone whilst in Idle state:
Picture of Animator in Unity:
Answer by MadDevil · Oct 08, 2015 at 04:52 AM
on the left hand side of the animator window, there will be parameters written.
here you have to mention about when you want your animations to change, as in your case from idle to attack.
when you have added a parameter, you can click on the white transition arrow going from idle to attack, on clicking it, on the right hand side you will be able to see the menu where you can add that parameter to the animator controller.
Thank you for your response! I created a bool parameter, so when true will trigger transition. To elaborate on my question, will I need to create a script so that when I press the "Attack Button" the Animation transition will occur based upon the bool parameter?
Your answer
![](https://koobas.hobune.stream/wayback/20220612040442im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Button press for Animations 1 Answer
Button animation (transition) reset 0 Answers
Mix and match animations 0 Answers