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!

1 Answer

1
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

where to place this script?

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 TRICK 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 ?)

where is assetImporter declared?