Last active
August 29, 2015 14:11
-
-
Save terrehbyte/9deb66c8561375b189bb to your computer and use it in GitHub Desktop.
Forces the import scale to 1.
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; | |
using System.Collections; | |
public class ImportScale : AssetPostprocessor | |
{ | |
public void OnPreprocessModel() | |
{ | |
ModelImporter modelImporter = (ModelImporter)assetImporter; | |
modelImporter.globalScale = 1; | |
} | |
} | |
// Source: http://answers.unity3d.com/questions/12187/import-settings.html | |
// Must be placed in Editor folder (e.g. "Assets/Editor/ImportScale.cs" or "Anything/Editor/ImportScale.cs") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment