A powerful,Customizable, and esay-to-use Toast UI for Unity
EasyUI_Toast.unitypackage
package to your project.⚠️ NOTE! : No need to add any prefab to the scene
using EasyUI.Toast ;
Toast.Show()
:// Simple :
Toast.Show ("Hello Devs") ;
// With duration :
Toast.Show ("Hello Devs", 3f) ;
// Built-in Colors ( Black, Red, Purple, Magenta, Blue, Green, Yellow, Orange ) :
Toast.Show ("Hello Devs", 3f, ToastColor.Green) ;
// Custom Colors :
Toast.Show ("Hello Devs", 4f, new Color (1f, .4f, 0f)) ;
// or Toast.Show ("Hello Devs", 4f, Color.blue);
// Positions ( TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight ) :
Toast.Show ("Top-Center Toast", 3f, ToastPosition.TopCenter) ;
Toast.Show ("Hello, <color=yellow>This is a yellow text</color>", 3f);
for more supported style tags : Text supported styles
Toast.Dismiss();
Toast.Show (string text);
Toast.Show (string text, float duration);
Toast.Show (string text, float duration, ToastPosition position);
Toast.Show (string text, ToastColor color);
Toast.Show (string text, ToastColor color, ToastPosition position);
Toast.Show (string text, Color color);
Toast.Show (string text, Color color, ToastPosition position);
Toast.Show (string text, float duration, ToastColor color);
Toast.Show (string text, float duration, ToastColor color, ToastPosition position);
Toast.Show (string text, float duration, Color color);
Toast.Show (string text, float duration, Color color, ToastPosition position);