Owl-Man / Android-Toast-Message-for-Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Toast Message for Unity

Drag the ToastSystem.cs script to your scripts folder in Unity project. Now you can call the Send method, which is located in the ToastSystem static class, and specify your text in the parameter.

Example:

using UnityEngine;

public class Test : MonoBehaviour 
{
    private void Start()
    {
        ToastSystem.Send("toast message");
    }
}

IMPORTANT: if you test the toast message in the Unity, there will be an error in the console. But if you build the apk and test it on an android smartphone, then everything will work.

About


Languages

Language:C# 100.0%