Search Issue Tracker
Fixed
Fixed in 2022.3.19f1, 2023.2.8f1, 2023.3.0b4
Votes
0
Found in
2022.3.17f1
2023.2.4f1
2023.3.0b1
Issue ID
UUM-59739
Regression
Yes
NullReferenceException is thrown when using sub-state machines in a synced layer
Reproduction steps:
1. Open the attached “AnimatorIssue.zip“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. In the Hierarchy window click on “Animated Cube” GameObject
4. Open the Animator tab
5. In the Layers view click on “SyncedLayer”
6. Double-click on the “CubeMotion” sub-state
7. Double-click on the “CubeMotion1” sub-state
8. Click on the “New State”
9. In the Inspector window select “New State -> Exit”
10. Observe the Console window
Expected result: No exception is thrown
Actual result: NullReferenceException is thrown
Reproducible with: 2022.2.4f1, 2022.2.21f1, 2022.3.17f1, 2023.2.4f1, 2023.3.0b1
Not reproducible with: 2021.3.34f1, 2022.2.3f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note:
Not reproducible in the base layer
Exception:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Graphs.AnimationStateMachine.AnimatorStateTransitionInspector.DoPreview () (at <febdb45aa296413abfcf2c3a8bf64398>:0)
UnityEditor.Graphs.AnimationStateMachine.AnimatorTransitionInspectorBase.OnInspectorGUI () (at <febdb45aa296413abfcf2c3a8bf64398>:0)
UnityEditor.Graphs.AnimationStateMachine.SourceNodeTransitionEditor.OnInspectorGUI () (at <febdb45aa296413abfcf2c3a8bf64398>:0)
UnityEditor.Graphs.AnimationStateMachine.StateEditor.OnInspectorGUI () (at <febdb45aa296413abfcf2c3a8bf64398>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0 () (at <a445319feeee47ac85466210448edf2f>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Profiler - Taking you to the wrong section when using 'show'
- Draw Renderers custom pass doesn't work with SSGI
- WebCamTexture does not set the requested resolution when used in WebGL
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
Resolution Note (fix version 2023.3.0b4):
Fix exception when selection a transition inside a sync layer, in the Animator window.
Resolution Note (fix version 2023.2.8f1):
Fix exception when selecting a transition inside a sync layer, in the Animator window.
Resolution Note (fix version 2022.3.19f1):
Fix exception when selecting a transition inside a sync layer, in the Animator window.