Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Feature Request Hardcoded minimal scale size for Transform

Discussion in 'Editor & General Support' started by Spoilerast, May 4, 2024.

  1. Spoilerast

    Spoilerast

    Joined:
    Aug 1, 2019
    Posts:
    6
    If we toggle Grid Snapping on and change Scale field to unsigned 1, then when we change scale with Scale Tool scene object scale to 0 it will stuck. Changing scale after setting strong zero does nothing. Well, it's just a math: zero multiplied for any number equals zero.
    Now we have to manually fix it in Inspector.
    Quaternion do have some kind of constraint named kEpsilon. So, my request is to make minimal scale constant like this:
    Code (CSharp):
    1. const float minScale = 1E-04f;
    ...and do some validations.

    Oh, I forget about negative scale. I guess we need some range constraint from +0.0001 to -0.0001.

    BTW my Unity version is 6000.0.0f1
     
    Last edited: May 4, 2024