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?
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.