Skip to content

Instantly share code, notes, and snippets.

@terrehbyte
Last active August 29, 2015 14:11
Show Gist options
  • Save terrehbyte/9deb66c8561375b189bb to your computer and use it in GitHub Desktop.
Save terrehbyte/9deb66c8561375b189bb to your computer and use it in GitHub Desktop.
Forces the import scale to 1.
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