Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

animator controller with Buttons

Discussion in 'Animation' started by LouisFernandez, Sep 12, 2013.

  1. LouisFernandez

    LouisFernandez

    Joined:
    Aug 4, 2013
    Posts:
    10
    Hi guys,

    is it possible to start the animation of an character (walk or run) with others keys than the arrow-keys in the animator controller?
    I want to create a menu with buttons where i can also control my character but its the same Problem. So, where or how can i change this or configurate this?

    bg Louis

    PS: I used this for help http://www.youtube.com/watch?v=Xx21y9eJq1U (Unity 4.0 - Mecanim Animation Tutorial )
     
  2. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    11,558
    Yes, it's possible. Animator controllers are not tied to input keys. They're tied to Parameters. I suggest looking at the scripts in the Mecanim Example Scenes project.
     
  3. LouisFernandez

    LouisFernandez

    Joined:
    Aug 4, 2013
    Posts:
    10
    thank you for your hint. It was helpful. I tried to change the animation parameters with buttons and an virtual joystick and it worked.
     
unityunity