Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
8.2.0
Issue ID
1263044
Regression
No
[URP] NullReferenceException error is thrown on pressing CTRL + Z after closing Sprite Lit Graph
NullReferenceException error is thrown on pressing CTRL + Z after closing Sprite Lit Graph
Steps to repro:
1. Create a new URP template project
2. Project window > "+" > Shader > 2D Renderer > Sprite Lit Graph (Experimental)
3. Open newly Created Lit Graph > Create any Property > Drag the property in Graph Editor.
4. Save The Graph > Close the Shader Graph.
5. Press CTRL + Z.
Actual Result:
NullReferenceException error is thrown in the console.
Expected Result:
No error in the console.
Reproducible in:
2020.2.0a18, 2020.1.0b16 with 8.2.0
Working Fine in:
2020.2.0a18 With Package Version 9.0.0, 8.1.0.
Environment:
Occurring only on Windows 10.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Experimental.GraphView.GraphView.RestoreSavedSelection (UnityEditor.Experimental.GraphView.IGraphViewSelection graphViewSelection) (at C:/buildslave/unity/build/Modules/GraphViewEditor/Views/GraphView.cs:316)
UnityEditor.Experimental.GraphView.GraphView.UndoRedoPerformed () (at C:/buildslave/unity/build/Modules/GraphViewEditor/Views/GraphView.cs:366)
UnityEditor.Undo.Internal_CallUndoRedoPerformed () (at C:/buildslave/unity/build/Editor/Mono/Undo/Undo.bindings.cs:231)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler() (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:432)
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
- Lights with Cookies generate Cookie Atlas and increase Memory usage every time when Play mode is entered
- Crash on mono_traverse_object_internal when exiting Play mode on a specific project
- Camera prefab shows up in overrides after upgrade when game view is changed to Simulator
- Prefab Override context menu does not appear when changing attributes on a Terrain Component
- Particles are visible through Mesh when Sprite-Lit-Default Material is used
Resolution Note:
Working in latest version, not worth backporting.