Last active
July 5, 2018 10:35
-
-
Save Makizemi/f6bbc01c3459972c040746c01e851984 to your computer and use it in GitHub Desktop.
This file contains 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 sealed class CustomModelImporter : AssetPostprocessor | |
{ | |
void OnPreprocessModel() | |
{ | |
var importer = assetImporter as ModelImporter; | |
importer.importNormals = ModelImporterNormals.Calculate; | |
importer.materialLocation = ModelImporterMaterialLocation.External; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment