Is there a way to automatically set the 3D model's Rig-Animation Type to Legacy?

Hello

I need a file with FBX’s Rig-Animation Type as Legacy

But if you get the FBX after working on the 3DMax,

The Rig-Animation Type is Generic

When I import FBX from 3DMax, I want FBX’s Rig-Animation Type to be set to Legacy
Is there a way?

Thank you.

I think you might be able to do it by writing your own AssetPreprocessor.

hello
I’ve tried AssetPreprocessor, as you said

public AutoFBXAnim : AssetPostprocessor
{
    void OnPreprocessModel()
    {
        ModelImporter importer = (ModelImporter)assetImporter;
                  importer.animationType = ModelImporterAnimationType.Legacy;
    }
}

By writing the script like this, the AnimationType of FBX entering the editor changes to Legacy.
thank you

3 Likes