- Home /
Can I disable automatic creation of materials
I really want to know if is possible to disable the automatic material creation ?.
I prefered to create my own materials folder, and apply them to the model.
I wish to work with .obj too.
I found and old thread from 2009, but maybe now at 2011 unity has a better way.
Thanks.
Answer by Duoz · Nov 04, 2014 at 05:14 PM
I found it! This C# script will do the job. Put it in Asset/Editor.
using UnityEditor;
public class FBXScaleFix : AssetPostprocessor
{ public void OnPreprocessModel()
{ ModelImporter modelImporter = (ModelImporter) assetImporter;
modelImporter.globalScale = 1;
modelImporter.importMaterials = false;
}
}
Answer by Eric5h5 · Mar 14, 2011 at 06:22 PM
In the inspector, for each mesh (under the Materials heading), change Generation from Per Texture to Off.
Its me timex, But doing that now my default mesh doesnt have a material ?, Can I to add a material to my mesh ?, not in the scene Im talking in my project structure.
Your answer

Follow this Question
Related Questions
Fade an object in and out 0 Answers
FBX Embedded Normal Map not being assigned to material 0 Answers
How to disable a shader in a material 1 Answer
How to disable API updater 1 Answer