Search Unity

Animator Layers

Discussion in 'Animation' started by ryananderson, Apr 28, 2020.

  1. ryananderson

    ryananderson

    Joined:
    Sep 7, 2018
    Posts:
    1
    If I have 3 layers, Run, Crouch, ShootGun, and each layer has 1 animation in it, how do I call the animation in C#? I have the run animation in the Run layer, crouch animation in the Crouch layer, and the Shoot gun animation in the ShootGun layer. When I press, the the left/right arrow keys, I want the character to walk. When I press the down arrow key, I want the charcater to crouch. When I press the F key, I want to the charcater to shoot. I just don't know how to call indivivual layers in C#.
     
  2. https://forum.unity.com/forums/animation.52/