guitext

Unity GUIText on Collision c#

断了今生、忘了曾经 提交于 2019-12-01 23:23:18
I'm writing a 3D maze program in C# and I need to have UI Text display "You Win!" When the player reaches the end of the maze. I have a trigger set up in Unity as a cube, named FinishLine, and I have the UI text named winText I'm getting an error on this line.. GUI.Box(New rect (10,10,100,90), winText); the error is "The best overloaded method matfch for unityengine.gui.box (unityEngine rect, string)' has some invalid arguments I also have no idea what those numbers are (10,10,100,90), so maybe that's messing something up? What are those values indicating...? Here is my code.. public class