The name of my project is MonsterMathIsland. When your File Explorer opens, select the folder that you used for your Unity project and open it. Right-click on the solution and click on Add in the drop-down options.Īdd an existing project to the solution by selecting Existing Project. Visual Studio does not recognize that the project has been added to the script. You can see that there are zero (0) projects. The Solution Explorer should now open at the left. In the drop-down, find Solution Explorer and click on it. You have now opened the script in Visual Studio.Ĭlick on View in the toolbar at the top of the screen. If you do not already have the script opened in VS Code, go to the Scripts folder in your Assets Panel and double-click on the affected script. To fix the "MonoBehaviour not showing colour" problem, you have to manually add the project folder to the script you are working on. One of the reasons Visual Studio Code doesn't colour the MonoBehaviour is that there is no project attached to the script. Fixing the "MonoBehaviour Not Colouring" Problem This tutorial will help you fix the issue of your MonoBehaviour (and other variables) staying white/black and sometimes, being unresponsive when you open Visual Studio Code. This can be a hindrance as colour-coding helps us move through our code faster and locate objects. Sometimes, MonoBehaviour, namespaces, and variables do not colour properly when you open the script. When working in Unity Engine, it is common practice to edit and open your scripts in VS Code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |