Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

31 Commits

Repository files navigation

Toast UI for your Game messages

A powerful,Customizable, and esay-to-use Toast UI for Unity

Toast ui



■ Supporting Platforms :

  • All platforms (Standalone Builds, Android, iOS, WebGl, and more..)

■ How to use? :

1- Import EasyUI_Toast.unitypackage package to your project.

⚠️ NOTE! : No need to add any prefab to the scene

3- Add EasyUI.Toast namespace in your script :

usingEasyUI.Toast;

4- Now Simply write Toast.Show():

// Simple :Toast.Show("Hello Devs");// With duration :Toast.Show("Hello Devs",3f);

■ Change colors :

// 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,newColor(1f,.4f,0f));// or Toast.Show ("Hello Devs", 4f, Color.blue);

■ Change position :

// Positions ( TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight ) :Toast.Show("Top-Center Toast",3f,ToastPosition.TopCenter);

■ Change text styling :

Toast.Show("Hello, <color=yellow>This is a yellow text</color>",3f);

Toast ui

for more supported style tags : Text supported styles



■ Dismiss (hide) toast :

Toast.Dismiss();

■ Other Show(..) versions :

Toast.Show(stringtext);Toast.Show(stringtext,floatduration);Toast.Show(stringtext,floatduration,ToastPositionposition);Toast.Show(stringtext,ToastColorcolor);Toast.Show(stringtext,ToastColorcolor,ToastPositionposition);Toast.Show(stringtext,Colorcolor);Toast.Show(stringtext,Colorcolor,ToastPositionposition);Toast.Show(stringtext,floatduration,ToastColorcolor);Toast.Show(stringtext,floatduration,ToastColorcolor,ToastPositionposition);Toast.Show(stringtext,floatduration,Colorcolor);Toast.Show(stringtext,floatduration,Colorcolor,ToastPositionposition);





❤️ Donate

Paypal

About

Unity cross-platform Toast UI package

Topics

Resources

Stars

106 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages