How do I install NodaTime in Unity 2021.3?

Nothing you configure in Visual Studios matters. It has to be installed IN Unity first.

Some ways might be:

  • copy / drag it into your Unity project
  • install it as a .unitypackage
  • install it through the Unity Package Manager

Remember that Unity doesn’t need VS at all. You could edit all your code with vi . :slight_smile:

Once installed, sometimes intellisense gets fudgy.

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

1 Like