docs.unity.cn
    Show / Hide Table of Contents

    Class EnumDisplayAttribute

    Used with a special property drawer that can limit which enum options are displayed

    Inheritance
    Object
    EnumDisplayAttribute
    Namespace: Unity.XRTools.Utils.GUI
    Syntax
    public sealed class EnumDisplayAttribute : PropertyAttribute

    Constructors

    EnumDisplayAttribute(Object[])

    Initialize a new EnumDisplayAttribute

    Declaration
    public EnumDisplayAttribute(params object[] enumValues)
    Parameters
    Type Name Description
    Object[] enumValues

    The enum values which should be displayed

    Fields

    names

    The names of the enum values used to initialize this attribute

    Declaration
    public string[] names
    Field Value
    Type Description
    String[]

    values

    The int values of the enum values used to initialize this attribute

    Declaration
    public int[] values
    Field Value
    Type Description
    Int32[]
    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Thursday, December 2, 2021
    Terms of use