docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ActionGroup

    ActionGroup UI element.

    Inheritance
    object
    CallbackEventHandler
    Focusable
    VisualElement
    BaseVisualElement
    ActionGroup
    Implements
    IEventHandler
    ITransform
    ITransitionAnimations
    IExperimentalFeatures
    IVisualElementScheduler
    IResolvedStyle
    IContextOverrideElement
    Inherited Members
    BaseVisualElement.contextPrefix
    BaseVisualElement.scaleOverride
    BaseVisualElement.themeOverride
    BaseVisualElement.langOverride
    BaseVisualElement.layoutDirectionOverride
    BaseVisualElement.preferredTooltipPlacementOverride
    BaseVisualElement.tooltipDelayMsOverride
    BaseVisualElement.GetLayoutDirectionUssClassName(Dir)
    VisualElement.disabledUssClassName
    VisualElement.ExecuteDefaultAction(EventBase)
    VisualElement.Focus()
    VisualElement.SendEvent(EventBase)
    VisualElement.SetEnabledFromHierarchy(bool)
    VisualElement.SetEnabled(bool)
    VisualElement.MarkDirtyRepaint()
    VisualElement.ContainsPoint(Vector2)
    VisualElement.Overlaps(Rect)
    VisualElement.DoMeasure(float, VisualElement.MeasureMode, float, VisualElement.MeasureMode)
    VisualElement.ToString()
    VisualElement.GetClasses()
    VisualElement.ClearClassList()
    VisualElement.AddToClassList(string)
    VisualElement.RemoveFromClassList(string)
    VisualElement.ToggleInClassList(string)
    VisualElement.EnableInClassList(string, bool)
    VisualElement.ClassListContains(string)
    VisualElement.FindAncestorUserData()
    VisualElement.Add(VisualElement)
    VisualElement.Insert(int, VisualElement)
    VisualElement.Remove(VisualElement)
    VisualElement.RemoveAt(int)
    VisualElement.Clear()
    VisualElement.ElementAt(int)
    VisualElement.IndexOf(VisualElement)
    VisualElement.Children()
    VisualElement.Sort(Comparison<VisualElement>)
    VisualElement.BringToFront()
    VisualElement.SendToBack()
    VisualElement.PlaceBehind(VisualElement)
    VisualElement.PlaceInFront(VisualElement)
    VisualElement.RemoveFromHierarchy()
    VisualElement.GetFirstOfType<T>()
    VisualElement.GetFirstAncestorOfType<T>()
    VisualElement.Contains(VisualElement)
    VisualElement.FindCommonAncestor(VisualElement)
    VisualElement.viewDataKey
    VisualElement.userData
    VisualElement.canGrabFocus
    VisualElement.focusController
    VisualElement.usageHints
    VisualElement.transform
    VisualElement.layout
    VisualElement.contentRect
    VisualElement.paddingRect
    VisualElement.worldBound
    VisualElement.localBound
    VisualElement.worldTransform
    VisualElement.pickingMode
    VisualElement.name
    VisualElement.enabledInHierarchy
    VisualElement.enabledSelf
    VisualElement.visible
    VisualElement.generateVisualContent
    VisualElement.experimental
    VisualElement.hierarchy
    VisualElement.cacheAsBitmap
    VisualElement.parent
    VisualElement.panel
    VisualElement.visualTreeAssetSource
    VisualElement.this[int]
    VisualElement.childCount
    VisualElement.schedule
    VisualElement.style
    VisualElement.customStyle
    VisualElement.styleSheets
    VisualElement.tooltip
    VisualElement.resolvedStyle
    Focusable.Blur()
    Focusable.focusable
    Focusable.tabIndex
    Focusable.delegatesFocus
    CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
    CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
    CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
    CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
    CallbackEventHandler.HandleEvent(EventBase)
    CallbackEventHandler.HasTrickleDownHandlers()
    CallbackEventHandler.HasBubbleUpHandlers()
    CallbackEventHandler.ExecuteDefaultActionAtTarget(EventBase)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public class ActionGroup : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement

    Constructors

    ActionGroup()

    Default constructor.

    Declaration
    public ActionGroup()

    Fields

    compactUssClassName

    The ActionGroup compact mode styling class.

    Declaration
    public const string compactUssClassName = "appui-actiongroup--compact"
    Field Value
    Type Description
    string

    containerUssClassName

    The ActionGroup container styling class.

    Declaration
    public const string containerUssClassName = "appui-actiongroup__container"
    Field Value
    Type Description
    string

    justifiedUssClassName

    The ActionGroup justified mode styling class.

    Declaration
    public const string justifiedUssClassName = "appui-actiongroup--justified"
    Field Value
    Type Description
    string

    moreButtonUssClassName

    The ActionGroup More Button styling class.

    Declaration
    public const string moreButtonUssClassName = "appui-actiongroup__more-button"
    Field Value
    Type Description
    string

    quietUssClassName

    The ActionGroup quiet mode styling class.

    Declaration
    public const string quietUssClassName = "appui-actiongroup--quiet"
    Field Value
    Type Description
    string

    selectableUssClassName

    The ActionGroup selectable mode styling class.

    Declaration
    public const string selectableUssClassName = "appui-actiongroup--selectable"
    Field Value
    Type Description
    string

    ussClassName

    The ActionGroup main styling class.

    Declaration
    public const string ussClassName = "appui-actiongroup"
    Field Value
    Type Description
    string

    verticalUssClassName

    The ActionGroup vertical mode styling class.

    Declaration
    public const string verticalUssClassName = "appui-actiongroup--"
    Field Value
    Type Description
    string

    Properties

    allowNoSelection

    Whether the ActionGroup allows no selection when in single or multi selection mode.

    Declaration
    [Tooltip("Whether the ActionGroup allows no selection when in single or multi selection mode.")]
    public bool allowNoSelection { get; set; }
    Property Value
    Type Description
    bool

    closeOnSelection

    Whether the ActionGroup's menu popover should close when a selection is made.

    Declaration
    [Tooltip("Whether the ActionGroup's menu popover should close when a selection is made.")]
    public bool closeOnSelection { get; set; }
    Property Value
    Type Description
    bool

    compact

    The compact state of the ActionGroup.

    Declaration
    [Tooltip("The compact state of the ActionGroup. A compact ActionGroup doesn't have any gap between its items.")]
    public bool compact { get; set; }
    Property Value
    Type Description
    bool

    contentContainer

    The content container of the ActionGroup.

    Declaration
    public override VisualElement contentContainer { get; }
    Property Value
    Type Description
    VisualElement
    Overrides
    VisualElement.contentContainer

    direction

    The orientation of the ActionGroup.

    Declaration
    public Direction direction { get; set; }
    Property Value
    Type Description
    Direction

    getItemId

    Callback used to get the ID of an item.

    Declaration
    public Func<int, int> getItemId { get; set; }
    Property Value
    Type Description
    Func<int, int>

    justified

    The justified state of the ActionGroup.

    Declaration
    [Tooltip("The justified state of the ActionGroup. A justified ActionGroup has its items stretched to fill the available space.")]
    public bool justified { get; set; }
    Property Value
    Type Description
    bool

    quiet

    The quiet state of the ActionGroup.

    Declaration
    [Tooltip("The quiet state of the ActionGroup. A quiet ActionGroup has no background and no border.")]
    public bool quiet { get; set; }
    Property Value
    Type Description
    bool

    selectedIds

    The selected items.

    Declaration
    public IEnumerable<int> selectedIds { get; }
    Property Value
    Type Description
    IEnumerable<int>

    selectedIndices

    The selected items.

    Declaration
    public IEnumerable<int> selectedIndices { get; }
    Property Value
    Type Description
    IEnumerable<int>

    selectionType

    The selection type of the ActionGroup.

    Declaration
    [Tooltip("The selection type of the ActionGroup. A selection type of None means that no item can be selected. A selection type of Single means that only one item can be selected at a time. A selection type of Multiple means that multiple items can be selected at a time.")]
    public SelectionType selectionType { get; set; }
    Property Value
    Type Description
    SelectionType

    Methods

    ClearSelection()

    Deselects any selected items.

    Declaration
    public void ClearSelection()

    ClearSelectionWithoutNotify()

    Deselects any selected items without sending an event through the visual tree.

    Declaration
    public void ClearSelectionWithoutNotify()

    GetDirectionUssClassName(Direction)

    Declaration
    public static string GetDirectionUssClassName(Direction enumValue)
    Parameters
    Type Name Description
    Direction enumValue
    Returns
    Type Description
    string

    SetSelection(IEnumerable<int>)

    Sets a collection of selected items.

    Declaration
    public void SetSelection(IEnumerable<int> indices)
    Parameters
    Type Name Description
    IEnumerable<int> indices

    The collection of the indices of the items to be selected.

    SetSelectionWithoutNotify(IEnumerable<int>)

    Sets a collection of selected items without triggering a selection change callback.

    Declaration
    public void SetSelectionWithoutNotify(IEnumerable<int> indices)
    Parameters
    Type Name Description
    IEnumerable<int> indices

    The collection of items to be selected.

    Events

    selectionChanged

    Event sent when the selection changes.

    Declaration
    public event Action<IEnumerable<int>> selectionChanged
    Event Type
    Type Description
    Action<IEnumerable<int>>

    Implements

    IEventHandler
    ITransform
    ITransitionAnimations
    IExperimentalFeatures
    IVisualElementScheduler
    IResolvedStyle
    IContextOverrideElement

    Extension Methods

    VisualElementExtensions.FindNavController(VisualElement)
    VisualElementExtensions.GetChildren<T>(VisualElement, bool)
    VisualElementExtensions.GetContextProvider<T>(VisualElement)
    VisualElementExtensions.GetContext<T>(VisualElement)
    VisualElementExtensions.GetPreferredTooltipPlacement(VisualElement)
    VisualElementExtensions.GetSelfContext<T>(VisualElement)
    VisualElementExtensions.GetTooltipTemplate(VisualElement)
    VisualElementExtensions.IsContextProvider<T>(VisualElement)
    VisualElementExtensions.ProvideContext<T>(VisualElement, T)
    VisualElementExtensions.RegisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)
    VisualElementExtensions.SetPreferredTooltipPlacement(VisualElement, OptionalEnum<PopoverPlacement>)
    VisualElementExtensions.SetTooltipTemplate(VisualElement, VisualElement)
    VisualElementExtensions.UnregisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)
    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)