docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ShadowShape2DProvider_ProperyDrawer

    Class ShadowShape2DProvider_ProperyDrawer is the default property drawer for all shadow providers and will render the providers serialized properties

    Inheritance
    object
    GUIDrawer
    PropertyDrawer
    ShadowShape2DProvider_ProperyDrawer
    Inherited Members
    PropertyDrawer.CreatePropertyGUI(SerializedProperty)
    PropertyDrawer.attribute
    PropertyDrawer.fieldInfo
    PropertyDrawer.preferredLabel
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)

    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.

    Overrides
    PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)