docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetEnumName

    GetEnumName<T>(SerializedProperty)

    Helper to get an enum name from a SerializedProperty

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

    The SerializedProperty

    Returns
    Type Description
    string

    The string containing the name of 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)