How to change Default FBX Animations import options

I just want to uncheck the “Import Animation” Check-box by default when I import a FBX.

I tried to use this script, it works for the “Rig” tab, but not work for “Animations” tab


using UnityEngine;

using UnityEditor;

using System;

public class CustomImportSettings : AssetPostprocessor 

void OnPreprocessModel() 


    ModelImporter importer = assetImporter as ModelImporter;

	importer.swapUVChannels = false;
	importer.generateSecondaryUV = true;
	//this line is not working
	importer.generateAnimations = ModelImporterGenerateAnimations.None;
	importer.animationType = ModelImporterAnimationType.None;


You’ve probably already found the answer, but just in case someone else comes looking:

modelImporter.importAnimation = false;

More details at: Unity - Scripting API: ModelImporter.importAnimation