Search Issue Tracker
Fixed in 10.3.0
Votes
0
Found in [Package]
10.0.0-preview.27, 9.0.0-preview.55
Issue ID
1281831
Regression
No
[Shader Graph] Reset functionality does not work on Property in Graph Inspector
Reset functionality does not work on Property in Graph Inspector and also NullReference thrown
Steps to Repro:
1. Create a new Project in URP or HDRP Template
2. Create a Shader Graph
3. Create a "Vector 1" property in Blackboard
4. Select property in Blackboard > GraphInspector > Node Settings > Rename the Reference
5. Select the Property and Right click > Reset reference
Expected Result:
Reference should be reset with the default value
Actual Result:
Reference is not getting reset and NullReference is also thrown
Reproducible on: 10.0.0-preview.27, 9.0.0-preview.55 with 2020.2.0b6, 2020.1.8f1
Environment: Windows 10 and Mac 10.15
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ShaderGraph.Drawing.BlackboardFieldView.<BuildContextualMenu>b__16_0 (UnityEngine.UIElements.DropdownMenuAction e) (at Library/PackageCache/com.unity.shadergraph@9.0.0-preview.55/Editor/Drawing/Blackboard/BlackboardFieldView.cs:119)
UnityEngine.UIElements.DropdownMenuAction.Execute () (at <e11cddb636f444f68eec62123764f018>:0)
UnityEditor.UIElements.EditorMenuExtensions+<>c__DisplayClass0_0.<PrepareMenu>b__0 () (at <7dae22651edf474ead4ab15fa947a891>:0)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at <7dae22651edf474ead4ab15fa947a891>:0)
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
- Memory usage rises when switching scenes with GRD enabled and a loaded texture in URP
- [Quality Hackweek] Terrain Brush Size value is not serialized after deselecting the terrain when using the first instance of multiple Inspectors
- "NullReferenceException" is thrown when setting a long string in TMP with "Atlas Population Mode" set to "Dynamic" and "Multi Atlas Textures" enabled
- TextMeshPro text is misaligned when alignment is set via script
- A DX11 shader error is thrown when compiling shaders for platforms without DX11 support
Resolution Note (fix version 10.3.0):
Fix is at this PR: https://github.com/Unity-Technologies/Graphics/pull/2550