Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

(Solved) How to reference in script with latest version?

Discussion in 'UGUI & TextMesh Pro' started by Schneider21, Feb 5, 2020.

  1. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    2,960
    I feel stupid for asking this, but I can't find it anywhere now.

    I'm using 2019.3 and TMPro 2.0.1. How do I import the TMPro library into my scripts for creating reference variables and performing API functions? It used to be:
    Code (CSharp):
    1. using TMPro;
    But that doesn't seem to resolve to the package anymore.

    upload_2020-2-5_10-40-11.png

    Am I missing something?
     
  2. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    2,960
    It seems that not generating all .csproj files was causing VS Code to not be able to find assets installed through the package manager. I don't recall ever having this issue before, but going into Preferences -> External Tools and generating the .csproj files there allowed Code to resolve the TMPro package.
     
unityunity