Home > database >  Can't access classes of Unity
Can't access classes of Unity

Time:02-22

Here, when I open the highlighted script in a Unity Project: enter image description here The visual studio opens and there's no solution explorer: enter image description here and even if I add it from View tab, there's nothing in it to be accessed or browsed.enter image description here

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.enter image description here 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:

Have you downloaded the Unity part of Visual Studio? reference

  • Related