Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Basic C# Question Regarding UI and "Text" not being found.

Discussion in 'Scripting' started by tnance24, Oct 14, 2018.

  1. tnance24

    tnance24

    Joined:
    Oct 13, 2018
    Posts:
    1
    I am currently going through a tutorial video on youtube for making a basic game.

    I am getting the error: "error CS0246: The type or namespace name 'Text' could not be found (are you missing a using directive or an assembly reference?)" My code was working before and now it is not.

    upload_2018-10-13_18-31-0.png
     
  2. Ian094

    Ian094

    Joined:
    Jun 20, 2013
    Posts:
    1,440
    You're using the UnityEngine.UI namespace so I'm not so sure why it's giving you that error.

    Maybe the error is coming from a different script?