Skip to main content

Variable: uiInteractionVisualStates

const uiInteractionVisualStates: object

Defined in: ui/types/ui-interaction-visual-state.ts:8

The visual state createUiTransitionEcsSystem derives from a UiInteractableEcsComponent's interaction state, merging isHovered and isFocused into one value so an element looks highlighted whether it's moused-over or gamepad-focused, with no transition component having to know which input the player is using.

Type Declaration​

disabled​

readonly disabled: "disabled" = 'disabled'

hover​

readonly hover: "hover" = 'hover'

normal​

readonly normal: "normal" = 'normal'

pressed​

readonly pressed: "pressed" = 'pressed'