Skip to content

Toasts

The Toasts system allows to send alerts to a notifications panel where the player can quickly read at a glance.

Download Toasts

You can download the Toasts system for free at gamecreator.io/downloads.

These notifications can be stacked so the player can read them when they are ready.

Pushing a Toast

To send a notification to a panel use the Show Toast instruction.

Show Toast notification Instruction

The Panel Id field is optional and allows to specify the panel(s) that will receive this notification and display it.

Using the example UI

The examples do not have a panel id, so leaving the field empty will send it to the default panel(s).

The Text, Icon and Color fields allow to customize the content of the toast.

Custom UI

The Toasts extension allows to very easily create custom UI for your own notifications. There are just two components required to build it:

  • The Toasts Panel UI which is the root of the panel and handles how its notifications behave and where they are placed
  • The Toast UI which determines where the text, icon, color and duration of the notification are displayed.

This extension comes with an example of toast UI ready to be used. It uses Unity's Vertical Layout Group and Content Size Fitter components to automatically arrange new notifications.