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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
Resolution Note (fix version 10.3.0):
Fix is at this PR: https://github.com/Unity-Technologies/Graphics/pull/2550