A welcome toast
Updated
A welcome toast that slides in at the bottom right when play starts and closes by itself after six seconds: NotificationService.show from a Behavior script, with nothing to prepare in the scene.
Watch the bottom-right corner of the view. Reload the example to see it again.
A welcome toast
#pragma lifecycle(startup)
function startup() { NotificationService.show( NotificationType.Info, { title: 'Welcome', text: 'Press E to interact with objects.' }, { anchor: 'bottom-right', duration: 6, stackLimit: 3 }, );}How it works
Section titled “How it works”The script is explained step by step in A welcome toast.
Open it in XR Creator
Section titled “Open it in XR Creator”Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.
WelcomeToast.xrproj