InputElement.AutoFocus property
Opt-in: when the window hosting this field is OPENED/toggled visible by the user, the framework gives this field keyboard focus (uGUI ActivateInputField) so the user can type immediately without clicking it first. Focus fires on the user-initiated show transition (hotkey toggle, SetVisible(true), close-button reopen) — NOT on a ShouldRender re-mount (e.g. zoning back into the world with the window already toggled on), so chat never steals movement keys on a world load. Only fires when the field’s GameObject is active in the hierarchy (a field inside a collapsed ConditionalElement is skipped). If more than one field in a window sets it, the first one built wins. Default false = unchanged. Added as an init property (NOT a ctor param) so the record stays source + binary compatible with already-compiled plugins.
public bool AutoFocus { get; set; }See Also
Section titled “See Also”- record InputElement
- namespace Stellar.Abstractions.Services