Search Unity

uniform scaling shortcut

Discussion in 'Getting Started' started by boolfone, Jun 3, 2016.

  1. boolfone

    boolfone

    Joined:
    Oct 2, 2014
    Posts:
    289
    Is there a way to do a uniform scaling on a GameObject real easily without adjusting X, Y, and Z separately? Like maybe you click on the word “Scale” and slide (that doesn’t work, but it might be nice)



    Thanks.
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Yep, you switch the scene editor to scale mode (the rightmost image below)...



    And then you click and drag on the little cube in the middle of the red/green/blue axes. That scales uniformly.

    Read the fine manual for more details!
     
    nomad881 and Kiwasi like this.
  3. MrUnecht

    MrUnecht

    Joined:
    Jan 16, 2016
    Posts:
    30
    Can i acess this uniform scaling through script?
     
  4. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Through script you can use this kind of trick

    Code (CSharp):
    1. transform.scale = Vector3.one * 17;
     
    jojue, MrUnecht and (deleted member) like this.
  5. MrUnecht

    MrUnecht

    Joined:
    Jan 16, 2016
    Posts:
    30
    Thank you :)