[SOLVED]. I don’t know how to add the text to the script. It don’t show the text box. The snapshot is given bellow.
Code:
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class TextController : MonoBehaviour {
public Text text;
// Use this for initialization
void Start () {
Text.text = “Hello World”;
}
// Update is called once per frame
void Update () {
}
}