UnityEngine.UI, InputSystem, TMPro, etc not found in namespace

Hello, ever since I’ve been using Unity, these 3 packages do not work in VScode, however they compile just fine in editor.

The problem is no intellisense (so I’m kind of working blind) and hundreds of false errors.

I’ve tried a ton of “fixes” including regenerating project files from the preferences tab, creating a new Assembly Definition file with those referenced in it, manually editing the packages/manafest.json file, etc.

I’m spending a lot of time with input/UI now and would really like some assistance in getting these working.

Thanks!

EDIT: Oops, wrong account. How do I delete this so I may repost on my normal account?

These are all in packages. If you don’t have the packages, install them.

If you do have the packages and Visual Studios is still being like this, 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:

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

Also, this: No suggestions in Vscode

Thanks for the post!

To clarify, intellisense did work – just not for those 3 specific packages.

However, I simply tried updating VSCode within the package manager as you said and now everything works perfectly, thanks!

I didn’t even know it was in the package manager lol.