Search Unity

HLP! Sub State Machine Animator for L and R Player animations - confused! 2D

Discussion in 'Animation' started by Footlight14, Feb 16, 2021.

  1. Footlight14

    Footlight14

    Joined:
    Mar 15, 2016
    Posts:
    27
    Hi,

    I have constructed an animator for my Player prefab where all anims come from Any State. My Player has a separate animation for Left and Right for every anim. I have been told my animator is cause for concern and that I should use SUb State Machines for Idle, Walk, etc but I am so confused even after reading the Docs.

    Can anyone get me going and showcase how Idle SubState Machine works in the base layer and within the Sub State? I use FacingRight as my Bool Animation Parameter for L or R.

    My current animator:
    https://www.dropbox.com/s/2op8f7j79hkcl3n/My Animator....png?dl=0

    My attempts at sub state machine:

    https://www.dropbox.com/s/eouohdnqlqzh7j2/Idle SubStateMachine confusion.png?dl=0

    https://www.dropbox.com/s/usl9jbur6ffyfau/Idle SubStateMachine confusion1.png?dl=0

    Thanks guys!

    James