Answers for "guitext unity"

7

error CS0619: 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.'

/*Add at the beginning of the code:*/
using UnityEngine.UI;
/*then replace GUIText with Text*/
Posted by: Guest on November-06-2020
2

how to solve error CS0619: 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.'

/*Open the . cs file that Unity is indicating on the error (you can use any text editor for this, even notepad)
Insert*/
using UnityEngine. UI;
/*on the beggining of the . cs file.
Replace GUIText with just Text.*/
Posted by: Guest on November-11-2020
1

unity gui text

public Text myText;

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

Code answers related to "guitext unity"

Browse Popular Code Answers by Language