docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EnumButtonGroupAttribute

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

    Inheritance
    object
    Attribute
    PropertyAttribute
    EnumButtonGroupAttribute
    EnumFlagButtonGroupAttribute
    Inherited Members
    PropertyAttribute.order
    Namespace: Unity.LiveCapture
    Assembly: Unity.LiveCapture.dll
    Syntax
    [AttributeUsage(AttributeTargets.Field)]
    public class EnumButtonGroupAttribute : PropertyAttribute
    Remarks

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

    Constructors

    EnumButtonGroupAttribute(float)

    Creates a new EnumButtonGroupAttribute instance.

    Declaration
    public EnumButtonGroupAttribute(float width)
    Parameters
    Type Name Description
    float width

    The desired width of the buttons in pixels.

    Fields

    SegmentWidth

    The desired width of the buttons in pixels.

    Declaration
    public readonly float SegmentWidth
    Field Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)