Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    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,123
    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