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
thanks
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;
}
}