Search Unity

Position of Child seems to change position of parent. Why?

Discussion in 'Prefabs' started by leurs, Oct 12, 2019.

  1. leurs

    leurs

    Joined:
    May 16, 2016
    Posts:
    2
    I have the following strange behaviour in Unity 2019.1.

    I have an empty object "Level_0" at pos (0, 0, 0).
    upload_2019-10-12_19-29-19.png

    Then I add a Prefab at pos (0, 0, 0).
    upload_2019-10-12_19-30-19.png

    When I now make the Prefab LevelGround to the child of Level_0 the position of Level_0 seems to change. It's still (0, 0, 0). But it is shown at the position of the Prefab.
    upload_2019-10-12_19-33-6.png
    Can anyone tell me why this happens?
     
  2. leurs

    leurs

    Joined:
    May 16, 2016
    Posts:
    2
    I found out that I can change from Pivot to Center in my View. When I change to Pivot the position is shown correctly:
    upload_2019-10-12_19-40-17.png