Rohan
Rohan

Reputation: 65

Can't access classes of Unity

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?

Upvotes: 1

Views: 1279

Answers (2)

Wesam Alabedy
Wesam Alabedy

Reputation: 1

you need to update your visual studio to latest update. if this didn't work out you'll have to change to vs 2022

Upvotes: 0

Steven Hoven
Steven Hoven

Reputation: 66

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

Upvotes: 4

Related Questions