Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

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

Discussion in 'Scripting' started by tnance24, Oct 14, 2018 at 12:32 AM.

  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. Intense_Gamer94

    Intense_Gamer94

    Joined:
    Jun 20, 2013
    Posts:
    1,361
    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?