Luna UI provides utilities to automatically disable unrelated interactable elements using the LunaUIManager, enabling Unity's auto navigation to function without manual setup.

See the Disable Other Views On FadeIn field in UIView or UIViewComponent.

Auto Navigation

Each UI Toolkit panel features a focus ring that determines the focus order of elements. You can learn more about this feature here:

Unity: Dispatch Events (opens in new tab)

Change what element is focused next

You can manually determine what element is focused next.

csharp
myVisualElement.RegisterCallback<NavigationMoveEvent>(e => { switch(e.direction) { case NavigationMoveEvent.Direction.Up: U.Focus(); break; case NavigationMoveEvent.Direction.Down: D.Focus(); break; case NavigationMoveEvent.Direction.Left: L.Focus(); break; case NavigationMoveEvent.Direction.Right: R.Focus(); break; } e.StopPropagation(); // Prevent further processing of the event myVisualElement.focusController.IgnoreEvent(e); // Prevent default navigation });

Settings

Theme

Light

Contrast

Material

Dark

Dim

Material Dark

System

Sidebar(Light & Contrast only)

Light
Dark

Font Family

DM Sans

Wix

Inclusive Sans

AR One Sans

Direction

LTR
RTL