docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EmbeddedSplineDataPropertyDrawer

    Creates a property drawer for EmbeddedSplineData types.

    Inheritance
    object
    GUIDrawer
    PropertyDrawer
    EmbeddedSplineDataPropertyDrawer
    Inherited Members
    PropertyDrawer.CreatePropertyGUI(SerializedProperty)
    PropertyDrawer.CanCacheInspectorGUI(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.Splines
    Assembly: Unity.Splines.Editor.dll
    Syntax
    [CustomPropertyDrawer(typeof(EmbeddedSplineData))]
    [CustomPropertyDrawer(typeof(EmbeddedSplineDataFieldsAttribute))]
    public class EmbeddedSplineDataPropertyDrawer : PropertyDrawer

    Methods

    GetPropertyHeight(SerializedProperty, GUIContent)

    Gets the height of a SerializedProperty in pixels.

    Declaration
    public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    SerializedProperty property

    The SerializedProperty to calculate height for.

    GUIContent label

    The label of the SerializedProperty.

    Returns
    Type Description
    float

    The height of a SerializedProperty in pixels.

    Overrides
    PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)
    See Also
    EmbeddedSplineDataFieldsAttribute

    OnGUI(Rect, SerializedProperty, GUIContent)

    Creates an interface for a SerializedProperty with an EmbeddedSplineData type.

    Declaration
    public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    Rect position

    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)
    See Also
    EmbeddedSplineDataFieldsAttribute

    See Also

    EmbeddedSplineDataFieldsAttribute
    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)