Please can someone teach me how to animate hand and weapon with mecanim in mobile. I have set all animations (Shooting, MeleeAction, GrenadeThrow, Reload)in Animator. Made all animations boolean (true/false). Everything is ok Animations works if I click booleans in Animator window. I want to animate them by pressing GUI buttons. I have GUI buttons like Joystick for each animations. But I have no idea how to animate them by pressing the buttons. Because I don’t know coding(((. All mecanim tutorials only for PC:(. Thank you in advance.
You have to do it in code. It will look something like the following-
if (GUI.Button(Rect(10,10,50,50), "mybutton")){
Animator.SetBool("animationname", true);
}
Thank you jRocket:)