docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetEnumValue

    GetEnumValue<T>(SerializedProperty)

    Helper to get an enum value from a SerializedProperty. This handle case where index do not correspond to enum value.

    Declaration
    public static T GetEnumValue<T>(this SerializedProperty property) where T : Enum
    Parameters
    Type Name Description
    SerializedProperty property

    The SerializedProperty

    Returns
    Type Description
    T

    The Enum value

    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)