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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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,798
    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!
     
    Kiwasi likes 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,852
    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 :)