Unity Engine documentationScript ReferenceUnityEngineUnityEngine.UIElementsFocusableFocus()Attempt to give the focus to this element.Read time 1 minuteLast updated 2 months agoDefinition Type: Method Namespace: UnityEngine.UIElements Assembly: UnityEngine.UIElementsModule public virtual void Focus()