Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Game object distort by rotating in inspector...

Discussion in 'Editor & General Support' started by vampir26, Feb 28, 2019.

  1. vampir26

    vampir26

    Joined:
    Mar 29, 2010
    Posts:
    108
    Hello

    I'm using unity since a long time and in the past, if I rotated an object in inspector (Y-axis), it rotated every time in the same way.

    But now, the object distort and the result is absolutely different.

    What is going on?

    Thanks in advance

    Screenshot:
     
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,317
    It is the child of a transform with a non-uniform scale. To fix this, make sure that you don't rotate objects that are children of non-uniform scaled transforms.
     
    Joe-Censored and vampir26 like this.
  3. vampir26

    vampir26

    Joined:
    Mar 29, 2010
    Posts:
    108
    Thank you!
     
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    If you unparent the object, rotate it, then reparent it, you'll probably get what you want done, even leaving the parent with non-uniform scale.
     
  5. JEsteras

    JEsteras

    Joined:
    Dec 28, 2015
    Posts:
    6
    I would like to learn a process to circumvent this situation...it has happen to me repeatedly in the past. So is there a way to create nested assets that negates this situation from happening? What is it we are doing wrong that creates this problem?