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
4
Question by Thet Naing Swe · Oct 16, 2010 at 11:23 AM · scalefbximporter

how can I change the scale size of the FBX importer

Hi, Unity import the FBX models from 3dsmax in just scale factor of 0.01 which is very small.. How can I change the import settings of the FBX importer for all models being imported as I don't want to change the scale factor everytime I import the model

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 BerggreenDK · Jun 30, 2011 at 09:23 PM 0
Share

@Thet Naing Swe: please check the answer you have received and mark it as the right answer if you can make it work too. I just did!

1 Reply

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

Answer by Jessy · Oct 16, 2010 at 02:14 PM

using UnityEngine; using UnityEditor;

class MeshPostprocessor : AssetPostprocessor {

void OnPreprocessModel () { (assetImporter as ModelImporter).globalScale = whateverNumber; }

}

http://unity3d.com/support/documentation/ScriptReference/ModelImporter.html

http://unity3d.com/support/documentation/ScriptReference/ModelImporter-globalScale.html

Comment
Add comment · Show 5 · 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 BerggreenDK · Jun 30, 2011 at 08:27 PM 0
Share

where to place this script?

avatar image BerggreenDK · Jun 30, 2011 at 09:22 PM 0
Share

I've placed it in a folder called Assets/Editor now and when I use Reimport on all my FBX's they suddently are the right scale! This is a GOOD TRIC$$anonymous$$ Jessy, I just wonder why they set it to 0.01 in the first place.

avatar image yl_rhs · Jul 02, 2015 at 03:33 AM 0
Share

does the 'file scale' still remains at 0.01 whereas the mesh scale becomes all 1?

avatar image ABerlemont · Nov 02, 2015 at 04:10 PM 0
Share

Is it possible to do the same thing AFTER import through, for example, an editor script ? (if yes, how ?)

avatar image neonwarge04 · Apr 08, 2016 at 01:47 AM 0
Share

where is assetImporter declared?

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Scaling the Mesh Collider 4 Answers

Maya to Unity Scale Factor Issues 0 Answers

FBX to Unity not scaling correctly 1 Answer

FBX Importer at runtime 2 Answers

FBX Import Scale Different for Objects of Same Size in Blender 1 Answer


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