Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/herbou/unity_toastui
Unity cross-platform Toast UI package
https://github.com/herbou/unity_toastui
toast ui unity unityui
Last synced: about 2 months ago
JSON representation
Unity cross-platform Toast UI package
- Host: GitHub
- URL: https://github.com/herbou/unity_toastui
- Owner: herbou
- License: mit
- Created: 2021-04-14T01:09:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T17:15:49.000Z (8 months ago)
- Last Synced: 2024-11-10T16:45:22.117Z (about 2 months ago)
- Topics: toast, ui, unity, unityui
- Language: C#
- Homepage:
- Size: 135 KB
- Stars: 84
- Watchers: 4
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Toast UI for your Game messages
A powerful,Customizable, and esay-to-use Toast UI for Unity### Video tutorial : https://youtu.be/405lXPINdx0
## ■ 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 :
```c#
using EasyUI.Toast ;
```### 4- Now Simply write ```Toast.Show()```:
```c#
// Simple :
Toast.Show ("Hello Devs") ;// With duration :
Toast.Show ("Hello Devs", 3f) ;
```## ■ Change colors :
```c#
// 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);
```## ■ Change position :
```c#
// Positions ( TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight ) :
Toast.Show ("Top-Center Toast", 3f, ToastPosition.TopCenter) ;
```## ■ Change text styling :
```c#
Toast.Show ("Hello, This is a yellow text", 3f);
```
for more supported style tags : Text supported styles
## ■ Dismiss (hide) toast :
```c#
Toast.Dismiss();
```## ■ Other Show(..) versions :
```c#
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);
```
## ❤️ Donate