#VISUAL STUDIO TOOLS FOR UNITY INSTALL#
This package is pre-installed when you install Unity.
#VISUAL STUDIO TOOLS FOR UNITY CODE#
Then drag and drop your file to where it should belong and voila! This will copy the file to where you drop it.Unity integrates with Microsoft Visual Studio through the Code Editor Package for Visual Studio.
Select the script that doesn't do auto-complete then right-click and select Include In Project.Ĭredit goes to chrisvarnz for this particular solution which seems to have worked for multiple people. This will reload the project and fix possible solution file problems. Now, open the project in Visual Studio by going to Assets → Open C# Project. Now, when you create a new C# file in Unity, it should open without saying Miscellaneous.įrom Unity, re-import project by going to Assets → Reimport All. The red 'x' icon should now turn into a brown checkmark icon. Click it then choose the Unity instance to connect to. When you re-start, connection icon should now be available in Visual Studio. Under Show connectivity icon, set it to true then restart Visual Studio. If newly created C# files are coming up as Miscellaneous then follow the instruction below:įrom Visual Studio, go to Tools → Options. On the External Script Editor drop down menu, change that to Visual Studio 2015. Do this while Unity and Visual Studio are both closed.įrom Unity Editor, go to Edit → Preferences. I can't tell which one is causing the problem but I will cover the most likely solution to fix this.ĭownload and Install Visual Studio Tools for unity from this link. Most of the times, restarting Unity and Visual Studio should fix this. When you create a script from Unity then quickly open it before Unity finish processing it or before the round icon animation stuff finish animating. This can happen when Visual Studio Tools for unity is not installed. When Visual Studio is opened you get " Miscellaneous Files" and no auto-completion. It can happen because Unity was closed then re-opened but is no longer connected to Visual Studio.
This can also happen because Unity crashed while Visual Studio is still open therefore corrupting some files. It can happen when you open your Unity C# file from another folder instead of opening it from Unity Editor. The " Miscellaneous Files" message can happen for many reasons: Take a look at the image below that came from the video in your question: There is no auto-completion because the script says " Miscellaneous Files" instead of the of the name of the Project.