Here, when I open the highlighted script in a Unity Project: The visual studio opens and there's no solution explorer: and even if I add it from View tab, there's nothing in it to be accessed or browsed.
Due to this I'm not able to access Unity classes like in this example Vector3 class cannot be accessed which can be noticed as it's not color coded. How can this problem be solved?
CodePudding user response:
Sometimes your visual studio is out of sync with your Unity. Some methods I used to fix this are:
- Greate a new script and delete it
- Editor->prefences-> and set your coding application to visual studio 2019 or any other version
CodePudding user response: