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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Two animator layers playing at the same time.

Discussion in 'Animation' started by EndrerDeg, Apr 19, 2023.

  1. EndrerDeg

    EndrerDeg

    Joined:
    Dec 9, 2021
    Posts:
    3
    I am making a fighting game in Unity 2020.1.4f1. In the animator window for Character1 I have two layer, Base Layer and Flip. Flip is used when Character1 is facing left and Base Layer is ued when facing right. However, when the Flip layer is used, Base Layer is playing at the same time. How do I fix this?
     
  2. SolarianZ

    SolarianZ

    Joined:
    Jun 13, 2017
    Posts:
    215
  3. EndrerDeg

    EndrerDeg

    Joined:
    Dec 9, 2021
    Posts:
    3
    I am not sure. How can I check if I have that or not?

    Edit: I checked now. I don't have it enabled.
     
    Last edited: Apr 19, 2023
  4. SolarianZ

    SolarianZ

    Joined:
    Jun 13, 2017
    Posts:
    215
    Oh, I misunderstood your question!

    BaseLayer is always played.
    In your case, it seems more appropriate to use a state machine or a mirrored state instead of a Layer.