Components/ Confirmation Popup

confirmationpopup_ex

Confirmation Popup is an UIView.

Inspector

confirmationpopup_ins

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.