✅ 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
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
I tried "Regenerate project files" nothing seemed to change
Im using 1.85.0?
seems to at least be showing suggestions now
Unity version shows up at the top in the editor windows' handle. Mine is 2022.3.0 in this example
Also you can check if you have the right IDE set up
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
If intellisense is not working for Rider / Visual Studio, follow these steps.
Close the editor and re-open it again by double-clicking a script file.