UnityEngine.UI is not working.

I am trying the following script :

using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class TextController : MonoBehaviour {

public Text text;

// Use this for initialization
void Start () {


// Update is called once per frame
void Update () {



While typing the 3rd line, using UnityEngine.UI; , I was supposed to get suggestions.
But didn’t.

And after writing it, the Text in line 8, public Text text; , is supposed to change color.

But it is not working.

I am new here. How can I fix it?

Have you tried saving the script? And is it located in your Unity project folder? Your code looks valid to access the Text class but if you cant inheret from MonoBehaviour u cant access its UI

Have the same problem,Have the same problem. When adding “using UnityEngine.UI;” it does not give me any suggestions nor working to add “publix Text”.