Search Issue Tracker
Fixed in 5.3.0
Votes
0
Found in [Package]
5.0.0-preview
Issue ID
1100832
Regression
No
Shader Graph - Exception occurs when undoing deletion of a Gradient Node
Shader Graph - Exception occurs when undoing deletion of a Gradient Node
If you delete a Gradient Node from a Graph and then undo, a UnityException will occur.
UnityException: set_mode is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'GraphObject'.
1. Launch Unity
2. Open the attached project
3. Open the PBRGraph Shader Graph Asset
4. Add a Gradient Node to the Graph
5. Delet the Gradient Node
6. Undo
Expected Result:
The Gradient Node should be readded to the Graph and no errors should appear in the console.
Actual Result:
An exception appears in the console.
Tested on
2019.1.0a9 with Shader Graph version 5.0.0-preview and LWRP version 5.0.0-preview
2018.3.0ab10 with Shader Graph version 4.1.0-preview and LWRP version 4.1.0-preview
Occurs on Windows and MacOS.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on GizmoDrawingPhysics2D::DrawCompositeCollider2DGizmo when opening a Scene that has corrupted GameObjects with Tilemap Components
- Scrolling vertically and horizontally is very fast when in Play Mode and RuntimeInputBackend is set to UIToolkitInputBackendOption.Default
- Crash on MemoryProfiler::UnregisterAllocation when initializing entities and leaving Play Mode with Occlusion Culling enabled
- Crash on mdb_page_alloc when opening a project that was running while the PC shut down
- macOS Player freeze when using RunInBackground and Command+Tabbing to and from the application
Add comment