docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetInline

    SetInline<T>(SerializedProperty, T)

    Set 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 void SetInline<T>(this SerializedProperty serializedProperty, T value) where T : struct
    Parameters
    Type Name Description
    SerializedProperty serializedProperty

    The property to set.

    T value

    The value to set.

    Type Parameters
    Name Description
    T

    The type of the value to set.

    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)