Docsv3.31.0
Back to API Reference
Class

UniTextFocusable

Inherits:Selectable
Implements:ISubmitHandlerIInitializePotentialDragHandlerIBeginDragHandlerIDragHandlerIEndDragHandler

Navigation / focus primitive for an interactive UniText surface — the EventSystem tab stop that lets the GameObject hold focus. Created and owned at runtime (hidden, not serialized) by Sync; never added manually.

Remarks

A GameObject holds a single Selectable. Where another one is already present, none is created and that component owns keyboard and gamepad focus: the text keeps its pointer interactions, while navigation between interactive ranges, activation of a focused range and range drag gestures are unavailable on that GameObject.
public override void OnSelect(BaseEventData eventData)
public override void OnDeselect(BaseEventData eventData)
public override void OnMove(AxisEventData eventData)
public void OnSubmit(BaseEventData eventData)
protected override void OnDisable()