Skip to main content

Introduction

This component provides a menu item for use with the UIMenu control.

"UI Menu Item"

Fields#

NameDescription
BackgroundBackground image for control
TransitionThe type of transition that will be applied to the targetGraphic when the state changes
Text LabelThe label for displaying text on this control
Color TextApply colors to text
Sprite StateThe SpriteState for this control
Animation TriggersThe AnimationTriggers for this control
On SelectedEvent fired when this control is selected
On DeselectedEvent fired when this control loses selection
On SubmitEvent fired when this control is submitted
On Interactable ChangedEvent fired when interactable state changes

Properties#

NameDescription
hasPointerTrue if pointer is over control
interactableDetermine if control is interactable
parentReturns the UIMenu that owns this control
pointerDownTrue if pointer is pressed over control
selectedTrue if control is selected
textGets/Sets the text on the control

Methods#

NameDescription
RefreshForce the control to refresh its UI
SubmitRaise submit