Confirmation Popup

Confirmation Popup Example

Confirmation Popup is an UIView.

Inspector

Confirmation Popup Inspector

Setup

1 - Create UXML with VisualElement that supports ConfirmationPopup

You can use the template in the Game Library sample. Or you can create any custom VisualElement named "ConfirmationPopup" that has these VisualElement children:

  • Label with name "Header"
  • Label with name "Body"
  • Button with name "Accept"
  • Button with name "Decline"

2 - Create UI Document and add Confirmation Popup

Thats it, now you can reference and control ConfirmationPopup from your scripts and listen to OnAccept and OnDecline events.

To control visibility of the ConfirmationPopup, use Fade just like how you control any other UIView.

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