Search Unity

  1. Unity 2019.1 beta is now available.
    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. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. 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. Ian094

    Ian094

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