Search Unity

Question Ink.Runtime namespace not found

Discussion in 'Editor & General Support' started by unity_mxTWsrmALoWtFQ, Aug 28, 2022.

  1. unity_mxTWsrmALoWtFQ

    unity_mxTWsrmALoWtFQ

    Joined:
    Aug 25, 2018
    Posts:
    11
    I've been trying to use Ink for my Unity Project.

    https://assetstore.unity.com/packages/tools/integration/ink-unity-integration-60055

    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).
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,726
    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. unity_mxTWsrmALoWtFQ

    unity_mxTWsrmALoWtFQ

    Joined:
    Aug 25, 2018
    Posts:
    11
    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 :)

    Thank you for your help @Kurt-Dekker !
     
    Kurt-Dekker likes this.
  4. amnalert

    amnalert

    Joined:
    Mar 26, 2024
    Posts:
    1
    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?