Answers for "Unity ongui text"

C#
1

Unity ongui text

void OnGUI () {
 
     if(bool == true)
     {
             // simple, but you could put tons of logic in here too
             GUI.Label(new Rect(20,40,80,20), "Text Here, COOL! "));
      }
 }
Posted by: Guest on October-22-2021
1

unity gui text

public Text myText;

void Start()
{
    myText.text = "This is my text";
}
Posted by: Guest on October-15-2020

C# Answers by Framework

Browse Popular Code Answers by Language