Toastify
OSMX
$4.99
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
02/13(2024) |
4.99 |
11/06(2024) |
4.99 |
Jump AssetStore
Enhance your Game user experience with Toastify, providing a visually appealing and user-friendly way to communicate important information within your application.Toastify is a lightweight and customizable toast notification system. Toast notifications serve as unobtrusive, transient messages that provide users with information about specific events or actions within the application.Enhance your Game user experience with Toastify, providing a visually appealing and user-friendly way to communicate important information within your application.Features:- Simple Integration: Easily integrate toast notifications into your Unity project with minimal setup.- Customization Options: Customize the appearance and behavior of toasts, including position, duration, title, and type.Customize the appearance of toast cards with new color options.background: Set the background color of the toast card.textColor: Define the text color of the toast card.- Flexible Toast Types: Define different toast types, each associated with a distinct color and icon, such as Success, Error, Warning, and Information.- Event Hooks: Attach callbacks to toast events, such as on open and on close, to execute specific actions based on user interactions.- Position Control: Choose from four predefined positions (TopLeft, TopRight, BottomLeft, BottomRight) to display toasts where they best fit your UI.- Cancellable Toasts:Introducing the ability to cancel specific toasts based on their unique identifiers.Use ToastifyManager.CancelToast(string id) to programmatically cancel and remove a specific toast by providing its ID.Returns true if the toast is successfully canceled, and false if the specified toast ID is not found.Getting StartedDownload and Import: Download the Toastify Unity Package and import it into your Unity project.Setup in Scene:Create an empty GameObject in your scene.Attach the ToastifyManager script to the GameObject.Displaying Toasts:Use ToastifyManager.Toast("Your Message", yourToastOptions) to display toasts.Customize toast options such as title, type, delay, and callbacks.Example// Display a success toastToastifyManager.Toast("Operation successful!", new ToastOptions { type = ToastType.Success });// Display a warning toast with custom optionsToastOptions warningOptions = new ToastOptions{ title = "Warning", type = ToastType.Warning, delay = 2f, closeOnClick = false};ToastifyManager.Toast("This is a warning message.", warningOptions);