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. Dismiss Notice

Object moves abruptly in scene view

Discussion in 'Editor & General Support' started by iishan, Apr 23, 2021.

  1. iishan

    iishan

    Joined:
    Mar 9, 2021
    Posts:
    2
    Hi,

    I am new to Unity, so please forgive if this has been answered many times before.
    I imported 3D Game Kit and started playing around with the Walls and Floor in the Stonework folder.
    However, I am seeing a strange behaviour in the scene view. When I move the scene around or zoom my camera in and out, some of the objects seem to change their position automatically. This is happening in Scene View, don't know if it is also happening when playing the game (I don't have enough knowledge to properly setup camera and movement to test it).
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    The object which is moving, are the values for its transform changing in the inspector?
     
  3. iishan

    iishan

    Joined:
    Mar 9, 2021
    Posts:
    2
    @Joe-Censored Thanks for your suggestion.
    I figured out that the objects that I am taking from 3D Game kit has two different LOD versions of it. I am assuming LOD is here for level of detail and it is connected to how far away the camera is from the object.
    The two different LOD level children should have 0,0,0 as their position, but it somehow got messed up for these objects.
    I realized that the objects weren't changing position at all, but instead some mechanism of Unity (used for LOD) was switching between the objects and I had mistakenly changed the position for one of the LOD objects.
    Once I reset the offset back to 0, 0, 0 and fixed the position, it worked just fine.

    Thanks for your help.
     
    Joe-Censored likes this.