Add this function in a subclass to get a notification just before animation from a model (.fbx, .mb file etc.) is imported.
借助此函数,您可以通过代码控制导入设置。
public class CreateAnimationClip : AssetPostprocessor { void OnPreprocessAnimation() { var modelImporter = assetImporter as ModelImporter; modelImporter.clipAnimations = modelImporter.defaultClipAnimations; } }