Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Jesper-Nielsen · Nov 20, 2014 at 09:32 PM · scaleresize

Resize an object without scaling

I was wondering how to resize an object without scaling it? What I mean is: How do I make a 4x4 cube that is also 4X4 in its local coordinate system?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jesper-Nielsen · Nov 20, 2014 at 09:40 PM 0
Share

What I mean is - when I add a cube and set scale to 4 on all 4 axes it is a 4x4 cube in world space. But in local space it is still just a 1x1 cube. Example: If the cube is placed at world zero then one of the corners will be at 2, 2, 2 in world space, but that same corner will still only be at 0.5, 0.5, 0.5 in the local space of the cube

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by robertbu · Nov 20, 2014 at 09:35 PM

I'm assuming that you want a cube that is 4x4x4 in world space when it local scale is (1,1,1) If so, then the mesh will need to be resized. At the following question:

http://answers.unity3d.com/questions/561786/how-to-export-obj-from-editor-with-rescaled-mesh.html

You will find an editor script called RotateMesh. It is designed to change the local rotation of a mesh, but it also resets the scale. Put it in your Assets/Editors folder. Then: 1) create a cube, 2) size that cube to 4x4x4, 3) select the cube in the hierarchy, 4) Select RotateMesh from the Windows menu. The result will be a clone cube in which the local scale will be 4x4x4.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jesper-Nielsen · Nov 20, 2014 at 10:17 PM 0
Share

Thanks:) This does the trick - just had to comment out where it also tries to save it as an asset. I kinda wonder why something like this isn't a feature already...

avatar image Kiwasi · Nov 20, 2014 at 10:38 PM 0
Share

In general this sort of work is done in modelling software. The scripting options are typically for modifying meshes at runtime. That's why there is no default menu to do this.

avatar image Doriot · Aug 14, 2018 at 09:04 AM 0
Share

Almost 4 years later I stumbled upon this, and literally saved me a lot of time. Thank you!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to shorten/extend an object? 2 Answers

Resize object in runtime 1 Answer

Resize Texture2D comes out grey 2 Answers

Resize the resolution of a sprite sheet and maintain the proportion percentage of the slices. 2 Answers

Particle Scaling 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges