Created
January 20, 2017 22:21
-
-
Save andyman/d70315460f11d348d490c46c1b62cab8 to your computer and use it in GitHub Desktop.
Add this to your /Editor folder in Unity to avoid importing materials for meshes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
public class DontImportMaterials : AssetPostprocessor | |
{ | |
public void OnPreprocessModel() | |
{ | |
ModelImporter modelImporter = (ModelImporter) assetImporter; | |
modelImporter.importMaterials = false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment