Search Unity

Sprite Renderer upon play changes character from front facing to back facing. Why?

Discussion in 'Editor & General Support' started by tmscaf, Mar 27, 2021.

  1. tmscaf

    tmscaf

    Joined:
    Mar 30, 2015
    Posts:
    8
    Hi all,

    I'm trying to figure why when I go and run my project does my down facing Sprite Renderer change to the up facing sprite.

    This first image in when my project IS NOT running. You can see that the Sprite is "MaleStandDown". And for reference I opened up the png so show you that the character is facing down (forward).

    Screen Shot 2021-03-26 at 10.00.36 PM.png

    This second picture is when the game is running. The Sprite model changes to MaleStandup (backwards facing) immediately. I can't find anything in my code that is telling to change. Especially when I have movement disabled on the character select screen.

    Screen Shot 2021-03-26 at 10.00.56 PM.png

    Thoughts on where something might be hiding?
     
  2. tmscaf

    tmscaf

    Joined:
    Mar 30, 2015
    Posts:
    8
    I was able to determine that it was as a result of the order of my blend tree for my players idle state. It reverted to the first direction that was entered. I corrected this by putting the idle down state first and putting the idle up state second. See pictures
     

    Attached Files: