Search Unity

Cant change SpriteRenderer SortOrder in same frame parent is set active

Discussion in 'General Graphics' started by CodeMonke234, Jun 23, 2015.

  1. CodeMonke234

    CodeMonke234

    Joined:
    Oct 13, 2010
    Posts:
    181
    If I try to change the sortOrder on the SpriteRender component of the children of an object immediately after activating it, the sortOrder reverts to the original setting.

    Is this the expected behavior?

    If I delay to a future frame it works fine.....

    Thanks in advance for any feedback / advice
     
unityunity