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.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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:
    12,169
    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.