C
C#13mo ago
Fallzy

✅ VS not recognizing functions

Hello, I've recently gotten into unity and I opened a script with all the default stuff so its using unity code. For some reason the functions are highlighted yellow and not recognized but they still work in unity when I run it and put a log message in. Even update, Awake, etc are showing yellow. Does anyone know how I could fix that?
7 Replies
Seoner
Seoner13mo ago
Inside Unity editor, try going into Edit->Preferences->External Tools and click on "Regenerate project files" button, see if that helps It's also worth using stable version of Unity, maybe by mistake - you've downloaded newest one (which are often in experimental phase) instead of some stable previous version, especially if you are new to Unity
Fallzy
FallzyOP13mo ago
I tried "Regenerate project files" nothing seemed to change Im using 1.85.0? seems to at least be showing suggestions now
Seoner
Seoner13mo ago
Unity version shows up at the top in the editor windows' handle. Mine is 2022.3.0 in this example
No description
Seoner
Seoner13mo ago
Also you can check if you have the right IDE set up
Seoner
Seoner13mo ago
No description
Seoner
Seoner13mo ago
Also, you could try deleting .vs folder from the project's folder so the files will rebuild (they are hidden by default) sometimes just closing and opening up unity will fix some issues... It's also good to use Unity Hub Also, you could try (but I think it should install by default) installing nuget package "Visual Studio tools for Unity" if you are using VS of course
MODiX
MODiX13mo ago
If intellisense is not working for Rider / Visual Studio, follow these steps.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or JetBrains Rider) as your preferred editor.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or JetBrains Rider) as your preferred editor.
Close the editor and re-open it again by double-clicking a script file.

Did you find this page helpful?