docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetInline

    GetInline<T>(SerializedProperty)

    Get the value of a SerializedProperty.

    This function will be inlined by the compiler. Caution: The case of Enum is not handled here.

    Declaration
    public static T GetInline<T>(this SerializedProperty serializedProperty) where T : struct
    Parameters
    Type Name Description
    SerializedProperty serializedProperty

    The property to get.

    Returns
    Type Description
    T

    The value of the property.

    Type Parameters
    Name Description
    T

    The type of the value to get.

    It is expected to be a supported type by the SerializedProperty.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)