docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPropertyHeight

    GetPropertyHeight(SerializedProperty, GUIContent)

    Returns 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

    Returns the height of a SerializedProperty in pixels.

    Overrides
    PropertyDrawer.GetPropertyHeight(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)