Skip to content

Instantly share code, notes, and snippets.

@hiroki-o
Created June 5, 2013 10:11
Show Gist options
  • Save hiroki-o/5712899 to your computer and use it in GitHub Desktop.
Save hiroki-o/5712899 to your computer and use it in GitHub Desktop.
Disable Animation import on Unity Editor (effective above v4.2)
class DisableAnimationImport extends AssetPostprocessor {
function OnPreprocessModel () {
if (assetPath.Contains("@@")) {
var modelImporter : ModelImporter = assetImporter;
modelImporter.importAnimation = false;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment