UniTextSemantics
Platform-neutral semantic tree owned by one UniText component. It publishes stable live nodes and incremental changes; native accessibility packages are adapters over this API.
public IReadOnlyList<TextSemanticNode> Nodes{ get }Current stable live nodes in logical codepoint order.
public RangeIdentity FocusedIdentity{ get }Stable identity currently marked focused, or an invalid value.
public static UniTextSemantics For(UniTextBase owner)Returns the semantic tree attached to a text component.
public static bool TryGet(UniTextBase owner, out UniTextSemantics semantics)Returns an existing semantic tree without creating one.
public bool TryGet(RangeIdentity identity, out TextSemanticNode node)Finds one node by stable entity identity.
public bool PerformAction(RangeIdentity identity, TextSemanticActions action)Requests one action declared by a node. Project handlers run first; Activate and Context then reuse the normal interaction router unless TextSemanticActionRequest.PreventDefault was called.
public Action<TextSemanticChange> ChangedOccurs once for every added, updated or removed node.
public Action CommittedOccurs after incremental content, geometry or state changes have been emitted.
