herbou / unity_toastui Goto Github PK
View Code? Open in Web Editor NEWUnity cross-platform Toast UI package
License: MIT License
Unity cross-platform Toast UI package
License: MIT License
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)
Is it possible to change the toast container position maually by setting up the transform position?
If yes, how can I change it?
In my function "Pause game" I have a call to "Toast.Dismiss();". This raises an error because the object is not initialized yet.
To fix this, just add a call to "prepare" before dismissing.
Error:
NullReferenceException: Object reference not set to an instance of an object
EasyUI.Toast.Toast.Dismiss () (at Assets/MyPackages/Toast UI/Scripts/Toast.cs:113)
GameManagerScript.pauseGame () (at Assets/Scripts/GameManagerScript.cs:126)
GameManagerScript.Update () (at Assets/Scripts/GameManagerScript.cs:95)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.