Classes will not detected

Hello,

a few Days ago, I installed Unity and I created a C#-Script. I just wanted to use Input class and function of this.
But Visual Studion cant detect the classes. I want to move my cube. With my Code it works, but as I told Visual Studio cant detect the classes “Input” and “GameObject”. My Project-Explorer is also empty. I think it isnt normal. Can anybody help me?

I had the same issue … thats the most annoying thing i´ve ever had,

solution:

  • Edit → Project Settings → Player → Api Compatibility Level - > set it up to 2.0 Standard,

problem solved i hope, i was searching for an answer for about 2 weeks x)

Sorry Guys… your solutions doesnt fix my problem. do you know another methode or answer to fix it?

Sorry, doesnt fix it. :frowning:

It was already 2.0. Doesnt fix my problem, sorry.
6158669--673169--upload_2020-8-1_22-16-1.png

Make sure that the IDE you’re using is selected in the External Tools of the Editor Preferences.
In my case this is Rider and I’m using an early access version via the Toolbox.
But since you use Visual Studio, select it from the dropdown menu.
May need to restart the editor and then double click on one of your scripts in the Project view
Might need to regenerate the project files through that button if it is still broken.

1 Like

Thank you very much! Your solution fixed my problem. I am very thankful. Now I can develop my own game…