Search Unity

Question How to start an animation

Discussion in 'Animation' started by iiSweeze, Feb 13, 2023.

  1. iiSweeze

    iiSweeze

    Joined:
    Feb 13, 2023
    Posts:
    1
    Hello, I am new to creating a Unity project. To begin with, I used the ThirdPerson template already available on the software which allowed me to already have a character who runs, walks and jumps.
    I wanted to implement an animation for him to crouch, but I don't know how to bind it to a key. I did add the key for crouching and I put the necessary lines of code, but I don't know how to link all that to this animation so that, when I press the key, the animation plays and he crouches. Do you have any solutions?
    (Sorry if my English is bad btw)