Search Unity

ScriptableObject class does not show in Visual Studio

Discussion in 'Editor & General Support' started by oddw, Nov 23, 2019.

  1. oddw

    oddw

    Joined:
    Nov 21, 2019
    Posts:
    4
    Skjermbilde 2019-11-23 kl. 15.04.57.png
    Trying to create a scriptable object in my game but the ScriptableObject class doesnt show in the editor and results in an error when typing it in
     
  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