Visual Studio Unity Mac Download



  1. The Unity engine integrates into one unparalleled platform to create 2D and 3D games and interactive content. Create once and publish to 21 platforms, including all mobile platforms, WebGL, Mac, PC and Linux desktop, web or consoles.
  2. Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C, C#, Java, Python, PHP, Go) and runtimes (such as.NET and Unity).
  3. Compatible with Visual Studio Community on Windows and macOS and bundled with Unity. Visual Studio and Visual Studio for Mac Community is available for free, and is bundled with Unity installs. Visit the Visual Studio Tools for Unity getting started documentation for more information about installation and setup. IntelliSense for Unity messages.
  4. I recently upgraded to Visual Studio for Mac 2019 via Unity Hub. At least to me, it seems like there is a significant amount of performance regressions when editing codes; the editor becomes unresponsive for 2 to 3 seconds every time I hit cmd+s to save files, and intellisense popup feels a lot more sluggish compared to the way it used to be with VS 2017.
  1. Visual Studio On Mac
  2. Visual Studio Unity Mac Download Windows 10
  3. Visual Studio Download For Mac

Visual Studio On Mac

This section covers issues specific to a setup where you have Unity running on a Mac and Visual Studio running under Windows in a VMWare Fusion or Parallels virtual machine.

Visual Studio dev tools & services make app development easy for any platform & language. Try our Mac & Windows code editor, IDE, or Azure DevOps for free.

For general information on working with Visual Studio and Unity, see: Setting up Visual Studio for Unity

  • 1Setting up the Environment
    • 1.3The Reference to UnityEngine.dll and UnityEditor.dll
    • 1.5Creating a Local Project for Visual Studio

Setting up the Environment

Basic VMWare (or Parallels) and Visual Studio installation

Set up a VMWare Image with Windows XP and Visual Studio 2005 or 2008 (any edition from Express to Team System should do fine). You can probably also use Windows Vista or Windows 2003 Server. You can find the Express Edition for free at: www.microsoft.com/express/vcsharp/

This article assumes that you are already familiar with Visual Studio. If not, it's probably a good idea to do some Visual Studio tutorials first, before continuing (they should be available in the Visual Studio documentation).

I'm using VMWare, but others are using Parallels, so that should also work just fine.

Mapping the Unity Project to be Accessible from Windows

If you haven’t done so already, set up your Unity projects in a folder that is accessible to your Windows XP VMWare Installation. Personally, I’m using Documents/Games in my home-folder and have mapped my home-folder to drive I: on Windows XP via a network share. Under Games/projectname I have my projects. So I can access my Unity projects on Windows XP via I:/Documents/Games/projectname.

The Reference to UnityEngine.dll and UnityEditor.dll

New approach

Assuming that you have a network drive mapped to your Applications folder (on the Mac) to drive letter F:, you can create to reference paths in the project properties:

F:UnityUnity.appContentsFrameworksManaged -> this will give you UnityEditor.dll and UnityEngine.dllF:UnityUnity.appContentsFrameworksMonolibmonounity -> this will give you the proper Mono-DLLs that Unity also uses (starting with Unity 3.0 ;-) )

Without those references, Unity won't find Boo.Lang, UnityEditor, UnityEngine and UnityScript (which are project references created by syncing the solution).

Old approach

Copy UnityEngine.dll and UnityEditor.dll to your Games-folder. To do that, open the console on Mac OS, and do something like (depending on your folder-structure):

(or, just locate Unity in your Applications folder, right-click: 'show contents', then browse to Frameworks, and copy UnityEngine.dll and UnityEditor.dll wherever you like.)

NOTE: Synching the solution will remove the references to those DLLs. So after each sync, you'll have to re-add those DLLs. Obviously, this only is a problem on the Mac.

Documentation for UnityEngine.dll and UnityEditor.dll

Wanna have this?

Just drop these two files in the same folder where you put the DLLs (Unity 2.1 version).

Note: After Unity 2.6 and the built-in Visual Studio integration, you'll want to drop the files in your 'UnityEditorDatalib' folder. If you had an existing Visual Studio project, you will need to drop and re-add the UnityEditor.dll and UnityEngine.dll references (from the lib folder just listed) before the documentation will show up.

Note: In Unity 2.6, you need to make a copy of 'UnityEngine.xml' and name it 'UnityEngine-Debug.xml'. Place in same folder.

You'll get inline documentation for all documented classes, methods and enumerations, both for UnityEngine and UnityEditor namespaces.

For some methods you'll even have parameter documentation. Basically, the newer the method, the more likely it is to have parameter docs... UT really is doing their homework so don't hesitate to nag them (by filing 'documentation' bug reports) to keep improving the docs, they are a huge asset to the strength of Unity!

Visual

Creating a Local Project for Visual Studio

Create a project on your local C: drive (to avoid security exceptions you may not wish to use a network drive).

In that project, create a folder lib and put the UnityEngine.dll into that folder. Add this as a reference.

Right-click 'References' in the project explorer, select 'Add reference', 'Browse', browse to where you put the DLLs, add them (you can select both at once). XML documentation will automatically follow. For later projects you can use the 'Recent' tab instead.

Tips

  • Always leave the DLLs + XML docs in the same folder, this way when a new Unity release comes up, all you'll have to do is overwrite them and all your projects will stay up to date. If you don't want that, create a folder for each DLL version, or even create project-specific copies.
  • At this point, it might be a good idea to export your project to a template, so for later projects you can directly create a Unity project with everything referenced. I would post my own template but I doubt it would cross over to a different machine.


I’m using a Windows application so I could do basic debugging by creating some buttons to start actions (thanks to Lka for a tip how to do this, see: http://forum.unity3d.com/viewtopic.php?t=7062#50779 ).

Folder Setup in Unity Project

In your Unity project, create your own Asset folder if you don’t have it, yet (I’m using Working Assets). Under that folder create a folder specifically for your C#-Unity-Scripts (I call it Scripts). Add a C# script there in Unity.

Visual Studio Unity Mac Download Windows 10

In your VS.NET 2005 or 2008 project, add a folder Projects/projectname. Select folder projectname and use Tools / Add Directory Content (this is what you downloaded and installed the plugin for in step 2).

Add-On for Convenient Adding of Unity Scripts Note

The section below is marked as obsolete claiming that the plugin is not needed because Unity now provides a mechanism for directly creating Visual Studio solutions from within Unity. However, this is only true of the Windows version. As these are instructions for making this work with the Mac version of Unity, that note is incorrect.

Also the latest version of Windows Studio may be higher than 9.0. In fact, as of this edit, it is 10.0.

Visual Studio Download For Mac

This plug-in works as advertised with Visual Studio 2010 (with the appropriate edit to the .AddIn file)

Obsolete: Add-On for Convenient Adding of Unity Scripts

NOTE: As Unity now supports directly creating the solution from within Unity, this Add-On is obsolete.

Download and installthis very practical addon

What you can use this for is conveniently add all scripts from a folder in one single 'go'.

Note: When you want to use this under Visual Studio 2008, you have to make sure that in your 'My Documents' (or 'Eigene Dateien') folder, in the 'Visual Studio 2008' folder, there’s an 'Addins' folder that contains the two files AddDirectoryContent.AddIn and AddDirectoryContent.dll. In AddDirectoryContent.AddIn, make sure that 8.0 is set to 9.0:

Mac

Thanks to benblo for this tip, see also:http://forum.unity3d.com/viewtopic.php?t=7062#50996

According to psynopticM, this may not work under Visual Studio 2008 Express:http://forum.unity3d.com/viewtopic.php?p=74325#74288

End of obsolete text.


Congratulations – now you can code C# for Unity in VS.NET 2005 / 2008. With Intellisense... and inline docs!

Retrieved from 'http://wiki.unity3d.com/index.php?title=Setting_up_Visual_Studio_for_Unity_on_Mac&oldid=12231'