private static void InitModelAnimation() { AnimationModel.AnimationClips = GetAllAnimationClip(); bool isGeneric = AnimationModel.GenericState(); SetAnimation(ref m_modelAnimation, isGeneric, m_model); if (!isGeneric) { return; } string sourcePath = Tool.FullPathToProjectPath(ModelDataModel.ControllerPath); Animator animator = m_model.GetComponent <Animator>(); var controller = animator.runtimeAnimatorController; AnimatorControllerManager.RemoveAllAnimatorTransition(controller.name, sourcePath); }