I dont know how, but my animator controller broken.

Unity console show:

**ArgumentException:** An element with the same key already exists in the dictionary.

*System.Collections.Generic.Dictionary`2[UnityEditor.Animations.AnimatorState,UnityEditor.Animations.AnimatorStateMachine].Add (UnityEditor.Animations.AnimatorState key, UnityEditor.Animations.AnimatorStateMachine value) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404)*

Full message

ArgumentException: An element with the same key already exists in the dictionary.

System.Collections.Generic.Dictionary`2[UnityEditor.Animations.AnimatorState,UnityEditor.Animations.AnimatorStateMachine].Add (UnityEditor.Animations.AnimatorState key, UnityEditor.Animations.AnimatorStateMachine value) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404)

UnityEditor.Graphs.AnimationStateMachine.Graph.FillStateMachineLookupFromStateMachine (UnityEditor.Animations.AnimatorStateMachine stateMachine) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/Graph.cs:423)

UnityEditor.Graphs.AnimationStateMachine.Graph.FillStateMachineLookupFromStateMachine (UnityEditor.Animations.AnimatorStateMachine stateMachine) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/Graph.cs:417)

UnityEditor.Graphs.AnimationStateMachine.Graph.FillStateMachineLookupFromStateMachine (UnityEditor.Animations.AnimatorStateMachine stateMachine) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/Graph.cs:417)

UnityEditor.Graphs.AnimationStateMachine.Graph.CreateStateMachineLookup () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/Graph.cs:339)

UnityEditor.Graphs.AnimationStateMachine.Graph.BuildGraphFromStateMachine (UnityEditor.Animations.AnimatorStateMachine stateMachine) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/Graph.cs:74)

UnityEditor.Graphs.AnimationStateMachine.Graph.SetStateMachines (UnityEditor.Animations.AnimatorStateMachine stateMachine, UnityEditor.Animations.AnimatorStateMachine parent, UnityEditor.Animations.AnimatorStateMachine root) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/Graph.cs:268)

UnityEditor.Graphs.AnimatorControllerTool.StateMachineView (Rect position) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:953)

UnityEditor.Graphs.AnimatorControllerTool.OnGUIGraph (Rect paneRect) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:892)

UnityEditor.Graphs.AnimatorControllerTool.OnGUI () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:849)

System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

I was attached file animator controller. Please help, I spent a lot of time on it and can’t lose everything.

2412789–164969–userplayer.zip (7.8 KB)