using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TextConroller : MonoBehaviour {
public Text text
void Start () {
Text.text = "Hello world";
}
void Update () {
}
}
Sorry; that last curly brace wasn’t copied into the “code” tags.
Ok, so the issue is the missing semi-colon on the end of this line;
public Text text
Also, you are missing a “t” from the word “controller” in the class name TextController. Unity expects the class name and the filename of the script to match, so this one is quite important.