Does anyone have a script to disable 'import animation'

Hello!

Does anybody have a script that will disable ‘Import Animation’ under the ‘Animations’ tab in ‘Import Settings’? Right now it’s is checked by default so every FBX I import automatically has an animator component attached.

Any help would be very much appreciated.

Thanks in advance!

JP

Hi @J0HNNYPANIC! This should do the trick (put the script in Assets/Editor):

class CustomImporter : AssetPostprocessor
{
    void OnPreprocessModel()
    {
        ModelImporter modelImporter = assetImporter as ModelImporter;
        modelImporter.importAnimation = false;
    }
}