Created
June 5, 2013 10:11
-
-
Save hiroki-o/5712899 to your computer and use it in GitHub Desktop.
Disable Animation import on Unity Editor (effective above v4.2)
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
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