Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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:
    12,367
    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.