Hi folks,
I’m new to Unity, so if I’m doing something wrong then it’s because I’m just not aware of the correct way.
I’ve got a simple Unity project going, into which I’ve created a C# script. I’ve assigned the script to a Cube, and have some basic movement code in it.
Originally, the script was just added into the root of the project assets folder, via the Unity GUI. I could open the script, with Visual Studio, and I would be provided with proper intellisense, syntax highlighting, etc. I can see that the connection between VS and Unity is established.
I wanted to organize my project, and so I moved my script into a folder called Scripts. After moving the script, I no longer receive syntax highlighting, intellisense, etc. I can still see that the connection between VS and Unity is active, though. In VS, the script is marked as being a “Miscellaneous File” as opposed to being part of my project.
Moving the script back out of the Scripts folder, and into the root folder, fixes the issue.
Any idea what I’m doing wrong here?
I’m using Visual Studio 2017 Community, with Unity tools installed. I’m using Unity version 2017.1.2f1.