Class ShadowShape2DProvider_ProperyDrawer
Class ShadowShape2DProvider_ProperyDrawer
is the default property drawer for all shadow providers and will render the providers serialized properties
Inherited Members
Namespace: UnityEditor.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Editor.dll
Syntax
[CustomPropertyDrawer(typeof(ShadowShape2DProvider), true)]
public class ShadowShape2DProvider_ProperyDrawer : PropertyDrawer
Methods
GetPropertyHeight(SerializedProperty, GUIContent)
Gets the name to be listed in the ShadowCaster2D
Casting Option drop down.
Declaration
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property | The SerializedProperty to make the custom GUI for. |
GUIContent | label | The label of this property. |
Returns
Type | Description |
---|---|
float | The float height in pixels. |
Overrides
OnGUI(Rect, SerializedProperty, GUIContent)
Gets the name to be listed in the ShadowCaster2D
Casting Option drop down.
Declaration
public override void OnGUI(Rect rect, SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | Rectangle on the screen to use for the property GUI. |
SerializedProperty | property | The SerializedProperty to make the custom GUI for. |
GUIContent | label | The label of this property. |