Search Unity

Assembly definition, TMPro and ES3 error

Discussion in 'Scripting' started by Rechronicle, Feb 18, 2022.

  1. Rechronicle

    Rechronicle

    Joined:
    Dec 14, 2017
    Posts:
    32
    Hi!
    I got TextMeshPro error notice when I don't add an assembly reference to my assembly. When I did it, ES3 starts to show errors instead. And it's vice-versa. What to do?

    TMPro error: missing assembly reference
    ES3 error: the name 'ES3' does not exist in the current context


    Looks like it's something related to Assembly-CSharp-firstpass. But I'm not sure how to fix it.
    Both TMPro and ES3(EasySave3) are located in the Plugins folder.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    This may help you with intellisense and possibly other Visual Studio integration problems:

    Sometimes the fix is as simple as doing Assets -> Open C# Project from Unity. Other times it requires more.

    Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.

    Barring all that, move on to other ideas:

    https://forum.unity.com/threads/intellisense-not-working-with-visual-studio-fix.836599/

    Also, try update the VSCode package inside of Unity: Window -> Package Manager -> Search for Visual Studio Code Editor -> Press the Update button

    Also, this: https://forum.unity.com/threads/no-suggestions-in-vscode.955197/#post-6227874
     
  3. Rechronicle

    Rechronicle

    Joined:
    Dec 14, 2017
    Posts:
    32
    the error still persists after trying everything.
    I decided to delete all of my assemblies to finally fix it.