Adding assets from manager does not include scripts in my project.

Not sure how to best describe this:

Everytime I import an asset from the package manager in my project, I can see the scripts in the unity editor, but they are never part of my project’s solution. I can’t access any classed.

I did try with a new project and it does not have that behavior, so I know it’s my current project that is at fault, but I can’t find any project or editor settings I might have changed.

(Right now trying to add the Fishnet asset, but my code can’t find the NetworkBehavior class)

Any tips on how to fix this would be appreciated, thank you!

(Trying to avoid recreating my project from scratch, as it’s quite big at the moment)

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

Thank you I will try all of that. I don’t think the issue is intellisense, as the files are just not in the visual studio solution, only in the unity editor. If I Include them in project manually, then they don’t seem to be properly imported: They won’t compile and any ‘using’ declaration is said not to exist. It’s the weirdest thing.

Does the code come in its own assembly definition? Usually you need your own assembly definition that references the other one for this to work.