docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetEnumValue

    SetEnumValue<T>(SerializedProperty, T)

    Helper to set an enum value to a SerializedProperty

    Declaration
    public static void SetEnumValue<T>(this SerializedProperty property, T value) where T : Enum
    Parameters
    Type Name Description
    SerializedProperty property

    The SerializedProperty

    T value

    The Enum

    Type Parameters
    Name Description
    T

    A valid Enum

    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)