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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note (fix version 10.3.0):
Fix is at this PR: https://github.com/Unity-Technologies/Graphics/pull/2550