Attach on a game object with UIDocument component. Creates an UIView for UIDocument.rootVisualElement.

Inspector View

UIViewComponent Inspector

Public Properties

NameTypeDescription
UIViewUIViewThe UIView created at Awake according to inspector settings.
ParentElementVisualElementThe VisualElement that serves as the parent for this UIView.
LunaUIManagerLuna UI ManagerLunaUIManager tracks interactable visual elements, enabling mass activation or deactivation within a UIView. You can also set a blocking element to prevent interaction with other elements until it is clicked.
FadeFadeUIElementManage fade transitions of the UIView.
UIDocumentUIDocumentUIDocument component attached to the same GameObject.

Public Methods

FadeOutThenDestroy

This method uses the public Fade variable from the UIView to fade out. Once the fade-out transition is complete, it destroys the associated GameObject.

csharp
public void FadeOutThenDestroy()

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