docs.unity3d.com
    目次を表示する/隠す

    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
    Syntax
    [AttributeUsage(AttributeTargets.Field)]
    public class EnumButtonGroupAttribute : PropertyAttribute, _Attribute
    Remarks

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

    Constructors

    EnumButtonGroupAttribute(Single)

    Creates a new EnumButtonGroupAttribute instance.

    Declaration
    public EnumButtonGroupAttribute(float width)
    Parameters
    Type Name Description
    Single 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
    Single
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)