Ink.Runtime namespace not found

I’ve been trying to use Ink for my Unity Project.

After installation through the Package Manager, everything on Unity seems to work fine (Ink files can be created, they get compiled to JSON, the Ink Player tab works, etc etc).

The problem is, Visual Studio just doesn’t want to find the Ink.Runtime namespace (but only in my scripts, the Ink script files themselves seem to resolve the namespace fine).

I tried restarting everything multiple times. I already tried regenerating project files with all checkboxes checked doesn’t seem to work either.

This is what I get:

What can I do to make VS recognize Ink? This worked fine with other packages (TextMeshPro, the new Input system, etc).

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://discussions.unity.com/t/778503

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://discussions.unity.com/t/805330/7

2 Likes

Yes, the thing that finally worked was removing the “.vs” folder in the project directory. Weird how nothing else seemed to help - but at least that fixes it for now!

So for anyone else running into this, try that as well :slight_smile:

Thank you for your help @Kurt-Dekker !

1 Like

hi I have tried a lot of things including deleting the .vs folder but I still get two errors(UnityIntegration does not exist in the namespace Ink and InkFile namespace could not be found), only for a single script, my dialogue manager that i made using a youtube tutorial. what else can i do?