- Home /
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
@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!
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
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.
does the 'file scale' still remains at 0.01 whereas the mesh scale becomes all 1?
Is it possible to do the same thing AFTER import through, for example, an editor script ? (if yes, how ?)
Your answer
![](https://koobas.hobune.stream/wayback/20220613075848im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
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