herbou / Unity_ToastUI

Unity cross-platform Toast UI package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ToastUI not working in 2020.3.1f1

riverole opened this issue · comments

I am getting an error when importing the ToastUI package:

You are trying to replace or create a Prefab from the instance 'text' that references a missing script. This is not allowed.
Please change the script or remove it from the GameObject.

Then, when I try to use the Toast, I get this error:

NullReferenceException: Object reference not set to an instance of an object
EasyUI.Toast.ToastUI.Show (System.String text, System.Single duration, UnityEngine.Color color) (at Assets/Toast UI/Scripts/ToastUI.cs:46)
EasyUI.Toast.ToastUI.Init (System.String text, System.Single duration, EasyUI.Toast.ToastColor color) (at Assets/Toast UI/Scripts/ToastUI.cs:38)
EasyUI.Toast.Toast.Show (System.String text, System.Single duration, EasyUI.Toast.ToastColor color) (at Assets/Toast UI/Scripts/Toast.cs:34)

I got myself to work by creating a new Mesh Pro GUI Text object and substituting the text one. Do you have by any chance what would the properties of that object be? Like a screenshot or such? Thanks!

Thanks bro, I fixed it, no need to add TextMeshPro anymore :)