Skip to content

Instantly share code, notes, and snippets.

@Makizemi
Last active July 5, 2018 10:35
Show Gist options
  • Save Makizemi/f6bbc01c3459972c040746c01e851984 to your computer and use it in GitHub Desktop.
Save Makizemi/f6bbc01c3459972c040746c01e851984 to your computer and use it in GitHub Desktop.
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