Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Create a new Unity project using the Universal 3D Template
2. Select the Cube GameObject and create an Animation clip for it
3. Open the Animator window (Window > Animation > Animator)
4. Right-click in the Animator window and create an Empty State
5. Right-click on the "New Animation" state and make a transition to the Empty State
6. Select the "New Animation" state
7. In the Inspector, under Transitions, increase the Transition Duration value
8. Observe the Console window
Actual results: “NullReferenceException” error is thrown in the Console window
Expected results: No errors are thrown in the Console window
Reproducible with versions: 6000.7.0a4
Not reproducible with versions: 6000.6.0b8, 6000.7.0a3
Tested on (OS): macOS Tahoe 26.6 (M1)
NullReferenceException: Object reference not set to an instance of an object UnityEditor.TransitionPreview.DoTimeline () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Animation/TransitionPreview.cs:689) UnityEditor.TransitionPreview.DoTransitionPreview () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Animation/TransitionPreview.cs:609) UnityEditor.Graphs.AnimationStateMachine.AnimatorStateTransitionInspector.DoPreview () (at /Users/bokken/build/output/unity/unity/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/AnimatorStateTransitionInspector.cs:392) UnityEditor.Graphs.AnimationStateMachine.AnimatorTransitionInspectorBase.OnInspectorGUI () (at /Users/bokken/build/output/unity/unity/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/AnimatorTransitionInspectorBase.cs:607) UnityEditor.Graphs.AnimationStateMachine.SourceNodeTransitionEditor.OnInspectorGUI () (at /Users/bokken/build/output/unity/unity/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/SourceNodeTransitionsEditor.cs:102) UnityEditor.Graphs.AnimationStateMachine.StateEditor.OnInspectorGUI () (at /Users/bokken/build/output/unity/unity/Editor/Graphs/UnityEditor.Graphs/AnimationStateMachine/StateEditor.cs:304) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass88_0.<CreateInspectorElementUsingIMGUI>b__2 () (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/Inspector/InspectorElement.cs:872) UnityEditor.GUIView:ProcessEvent(EntityId, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:86)
Issues you vote on will appear here