Sunday 17 November 2013

How to setup Visual Studio Express 2013 with Unity3D


Follow these below to setup visual studio express 2013 with Unity3D, for code editing.( Monodevelop still needs to be used for any debugging)

  1. Download and Install Visual Studio 2013 for windows desktop here( Make sure you download the right version)
  2. Create a textfile in windows at your preferred location and rename it to script.bat (File name can be anything but extension should be .bat)
  3. Open the script.bat file with any text editor and enter "Start "" %1"  without quotes.
  4. Open Unity3d., Go to Edit-->Preferences-->External Tools , in external script editor field show the path to the script.bat created above.
  5.  Go to Assets menu on top and click Sync Monodevelop Project. (In some versions of unity this will open the project directly in VS2013 Express, if it opens then close the VS2013 window). Now go to your projects and open *.sln file in the root directory.
      Now you can double click on any script and it will open it in VS2013 express. Important thing to                   remember is to open the *.sln file first before opening any script from unity3d.

Caution: Don't rename any file in Visual studio, always rename the files in Unity3d






No comments:

Post a Comment