Toastify is a simple and easy-to-use toast notification system for Unity. It allows you to display transient messages to users about specific events or actions within the application. With Toastify, you can enhance your game user experience by providing important information in a visually appealing way.
Features include:
- Simple integration with minimal setup
- Customization options for appearance and behavior
- Customizable toast types with distinct colors and icons
- Event hooks for attaching callbacks to toast events
- Position control with four predefined positions
- Cancellable toasts with unique identifiers
With Toastify, you can display toasts with custom options such as title, type, delay, and callbacks. You can also cancel specific toasts programmatically using the ToastifyManager.CancelToast method.
Example use cases include displaying success toasts, warning toasts, and information toasts with custom options.
To get started with Toastify, follow these steps:
- Download and import the Toastify Unity Package into your project.
- Create an empty GameObject in your scene and attach the ToastifyManager script to it.
- Use the ToastifyManager.Toast method to display toasts with custom options.
Example code:
// Display a success toast
ToastifyManager.Toast("Operation successful!", new ToastOptions { type = ToastType.Success });
// Display a warning toast with custom options
ToastOptions warningOptions = new ToastOptions
{title = "Warning",
type = ToastType.Warning,
delay = 2f,
closeOnClick = false};
ToastifyManager.Toast("This is a warning message.", warningOptions);
Enhance Your Game User Experience with Toastify - Asset Store





