Search Issue Tracker

Fixed in 2021.1.X

Votes

0

Found in

Issue ID

1299280

Regression

No

StackLit ShaderGraph break when selecting

HD RP

-

Repro steps:

- Create a new StackLit shader graph
- Open the graph settings and in Surface Option foldout look for "Specular Occlusion (from AO Input)"
- Select "SPTD Integration Of Bent AO"
- The graph break with this error in the console:

Exception: Can't create UI field for type UnityEditor.Rendering.HighDefinition.ShaderGraph.StackLitData+SpecularOcclusionAOConeSize, please add it if it's relevant. If you can't consider using TargetPropertyGUIContext.AddProperty instead.
UnityEditor.Rendering.HighDefinition.ShaderGraph.SubTargetPropertyBlock.AddProperty[Data] (UnityEngine.GUIContent displayName, System.Func`1[TResult] getter, System.Action`1[T] setter, System.Int32 indentLevel) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/SubTargetPropertyBlock.cs:67)
UnityEditor.Rendering.HighDefinition.ShaderGraph.SubTargetPropertyBlock.AddProperty[Data] (System.String displayName, System.Func`1[TResult] getter, System.Action`1[T] setter, System.Int32 indentLevel) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/SubTargetPropertyBlock.cs:38)
UnityEditor.Rendering.HighDefinition.ShaderGraph.StackLitSurfaceOptionPropertyBlock.CreatePropertyGUI () (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.render-pipelines.high-definition/Editor/Material/StackLit/ShaderGraph/StackLitSurfaceOptionPropertyBlock.cs:86)
UnityEditor.Rendering.HighDefinition.ShaderGraph.SubTargetPropertyBlock.CreatePropertyGUIWithHeader () (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/SubTargetPropertyBlock.cs:147)
UnityEditor.Rendering.HighDefinition.ShaderGraph.SubTargetPropertiesGUI.AddPropertyBlock (UnityEditor.Rendering.HighDefinition.ShaderGraph.SubTargetPropertyBlock block) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/SubTargetPropertiesGUI.cs:36)
UnityEditor.Rendering.HighDefinition.ShaderGraph.StackLitSubTarget.AddInspectorPropertyBlocks (UnityEditor.Rendering.HighDefinition.ShaderGraph.SubTargetPropertiesGUI blockList) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.render-pipelines.high-definition/Editor/Material/StackLit/ShaderGraph/StackLitSubTarget.cs:330)
UnityEditor.Rendering.HighDefinition.ShaderGraph.LightingSubTarget.GetPropertiesGUI (UnityEditor.ShaderGraph.TargetPropertyGUIContext& context, System.Action onChange, System.Action`1[T] registerUndo) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/LightingSubTarget.cs:51)
UnityEditor.Rendering.HighDefinition.ShaderGraph.HDTarget.GetPropertiesGUI (UnityEditor.ShaderGraph.TargetPropertyGUIContext& context, System.Action onChange, System.Action`1[T] registerUndo) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDTarget.cs:163)
UnityEditor.ShaderGraph.Drawing.Inspector.PropertyDrawers.GraphDataPropertyDrawer.GetSettings (UnityEditor.ShaderGraph.GraphData graphData, System.Action onChange) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Inspector/PropertyDrawers/GraphDataPropertyDrawer.cs:105)
UnityEditor.ShaderGraph.Drawing.Inspector.PropertyDrawers.GraphDataPropertyDrawer.CreateGUI (UnityEditor.ShaderGraph.GraphData graphData) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Inspector/PropertyDrawers/GraphDataPropertyDrawer.cs:131)
UnityEditor.ShaderGraph.Drawing.Inspector.PropertyDrawers.GraphDataPropertyDrawer.DrawProperty (System.Reflection.PropertyInfo propertyInfo, System.Object actualObject, UnityEditor.ShaderGraph.Drawing.InspectableAttribute attribute) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Inspector/PropertyDrawers/GraphDataPropertyDrawer.cs:140)
UnityEditor.ShaderGraph.Drawing.Inspector.InspectorUtils.GatherInspectorContent (System.Collections.Generic.List`1[T] propertyDrawerList, UnityEngine.UIElements.VisualElement outputVisualElement, UnityEditor.ShaderGraph.Drawing.IInspectable inspectable, System.Action propertyChangeCallback, UnityEditor.ShaderGraph.Drawing.IPropertyDrawer propertyDrawerToUse) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Inspector/InspectorView.cs:184)
UnityEditor.ShaderGraph.Drawing.Inspector.InspectorView.DrawInspectable (UnityEngine.UIElements.VisualElement outputVisualElement, UnityEditor.ShaderGraph.Drawing.IInspectable inspectable, UnityEditor.ShaderGraph.Drawing.IPropertyDrawer propertyDrawerToUse) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Inspector/InspectorView.cs:129)
UnityEditor.ShaderGraph.Drawing.Inspector.InspectorView.ShowGraphSettings_Internal (UnityEngine.UIElements.VisualElement contentContainer) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Inspector/InspectorView.cs:146)
UnityEditor.ShaderGraph.Drawing.Inspector.InspectorView.Update () (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Inspector/InspectorView.cs:99)
UnityEditor.ShaderGraph.Drawing.Inspector.InspectorView.TriggerInspectorUpdate () (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Inspector/InspectorView.cs:134)
UnityEditor.ShaderGraph.Drawing.MaterialGraphView.ChangeTargetSettings () (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Views/MaterialGraphView.cs:82)
UnityEditor.ShaderGraph.Drawing.Inspector.PropertyDrawers.GraphDataPropertyDrawer.<CreateGUI>b__7_1 () (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.shadergraph/Editor/Drawing/Inspector/PropertyDrawers/GraphDataPropertyDrawer.cs:131)
UnityEditor.Rendering.HighDefinition.ShaderGraph.StackLitSurfaceOptionPropertyBlock.<CreatePropertyGUI>b__3_28 (UnityEngine.UIElements.ChangeEvent`1[T] evt) (at C:/Users/Antoine Lelievre/Github/Graphics_ShaderStack/com.unity.render-pipelines.high-definition/Editor/Material/StackLit/ShaderGraph/StackLitSurfaceOptionPropertyBlock.cs:82)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.DefaultDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.VisualElement.SendEvent (UnityEngine.UIElements.EventBase e) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.UIElements.BaseField`1[TValueType].set_value (TValueType value) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEditor.UIElements.EnumField.ChangeValueFromMenu (System.Object menuItem) (at <7ba5bac7360d4ac8a9ebd5b4256fdfe2>:0)
UnityEditor.UIElements.EnumField.<ShowMenu>b__23_0 (System.Object contentView) (at <7ba5bac7360d4ac8a9ebd5b4256fdfe2>:0)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at <f3e15d0b0fba46daa8106ea31d8c9721>:0)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.