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
1 Answer
1using 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 TRICK Jessy, I just wonder why they set it to 0.01 in the first place.
– BerggreenDKIs it possible to do the same thing AFTER import through, for example, an editor script ? (if yes, how ?)
– ABerlemont
@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!
– BerggreenDK