Search Unity

  1. Unity 2018.3 is now released.
    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. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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. Intense_Gamer94

    Intense_Gamer94

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