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 RyuBlue · Nov 15, 2013 at 02:54 PM · scalemayaunit

Unity unit scale compared to Maya

Hey, I'm really struggling to understand what causes this issue and how to prevent it, or at least to understand Unity units properly if I'm just not understanding how they work.

I've read that although Unity doesn't have explicit unit sizes, most people interpret 1 unit = 1 metre. In Maya the default is 1 unit = 1cm.

However everything that I import from maya is 10x the size it should be. The only solution I've found is to change the import scale from 1 to 0.1 on EVERYTHING that I import or to scale everything in unity much larger than is wanted, so a 1metre cube would be scaled 10x10x10. I'd much rather import exactly what was created, at the size intended, however I don't want to start creating models in Maya at ridiculously scaled down sizes just so they import correctly into Unity.

This is what I'm getting in Unity. The cube on the left is 1 Maya centimetre, and the cube on the right is 1 Unity unit.

alt text

Every post I see online about this just says 'leave everything as the default, they work as they should', but this is obviously wrong compared to what everyone else is getting, everyone else seems to get two cubes that are the same size.

I've checked and double checked that the maya units are set to centimetres.

Thanks!

screen shot 2013-11-15 at 14.16.10.png (74.2 kB)
Comment
Add comment · Show 2
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 gajdot · Nov 15, 2013 at 03:14 PM 0
Share

As far as I know the default import settings is 0.1 for models, at least for me. I don't use maya, but maybe you can change the unit size as long as you are exporting for Unity? (I my self like it to be 1)

avatar image RyuBlue · Nov 15, 2013 at 03:19 PM 0
Share

Thanks gajdot, having the import settings default to 0.1 would make life a lot easier, so I wouldn't have to remember to change it every time. No idea if there is a way to change the default though.

1 Reply

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

Answer by gajdot · Nov 15, 2013 at 03:25 PM

You can use an editor script to change the import scale. You can find a solution in this question: http://answers.unity3d.com/questions/12187/import-settings.html

Just change it to be like this:

 using UnityEditor;
 public class FBXScaleFix : AssetPostprocessor
 {
   public void OnPreprocessModel()
   {
     ModelImporter modelImporter = (ModelImporter) assetImporter;
     modelImporter.globalScale = 0.1;
   }
 }

Just don't forget to place your script in Assets/Editor folder inside your project folder.

Comment
Add comment · Show 1 · 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 RyuBlue · Nov 20, 2013 at 02:51 PM 0
Share

Thanks Gajdot, that does the job!

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

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Maya fbx to unity scale problem 1 Answer

What units do the transform options position and scale have? 2 Answers

Scaling for rig when imported issue 1 Answer

character & objects import in different scale & animation dosent work right anymor!!!! 1 Answer

Problem about mirror flip of a mesh 2 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