Search Unity

Unity randomly change GameObject order in hierarchy

Discussion in 'Editor & General Support' started by hromoyDron, Feb 14, 2020.

  1. hromoyDron

    hromoyDron

    Joined:
    Jan 24, 2013
    Posts:
    90
    Hello!

    I moved from Mac to Windows and Unity began randomly changing the hierarchy of objects on the scene.

    In the editor, I manually change the order of objects on the scene, then save the scene and reload it. After reloading the scene, the objects are randomly arranged.

    In this case, the problem is only on windows. If you open the same scene on the Mac, it will be displayed correctly with the correct order of objects.

    I also noticed that if you remove the prefabs into a separate object, the problem disappears. But when prefabs are in the same parent with ordinary objects, such a mess occurs.

    I tried to completely delete the project and reload it, but nothing helps.
    Is there any way to fix the problem without writing extra code?

    before reloading scene
    after