docs.unity.cn
    Show / Hide Table of Contents

    Class EnumFlagButtonGroupAttribute

    An attribute placed on serialized flags enum properties to draw the enum using a group of buttons instead of the default dropdown.

    Inheritance
    Object
    Attribute
    PropertyAttribute
    EnumButtonGroupAttribute
    EnumFlagButtonGroupAttribute
    Inherited Members
    EnumButtonGroupAttribute.SegmentWidth
    PropertyAttribute.order
    Namespace: Unity.LiveCapture
    Syntax
    [AttributeUsage(AttributeTargets.Field)]
    public class EnumFlagButtonGroupAttribute : EnumButtonGroupAttribute, _Attribute
    Remarks

    This is useful to avoid blocking the main thread while the dropdown popup is active.

    Constructors

    EnumFlagButtonGroupAttribute(Single)

    Creates a new EnumButtonGroupAttribute instance.

    Declaration
    public EnumFlagButtonGroupAttribute(float width)
    Parameters
    Type Name Description
    Single width

    The desired width of the buttons in pixels.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, July 24, 2023