{"id":4491,"date":"2016-02-04T10:00:00","date_gmt":"2016-02-04T18:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/?p=4491"},"modified":"2019-02-14T15:30:18","modified_gmt":"2019-02-14T23:30:18","slug":"visual-studio-tools-for-unity-2-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-tools-for-unity-2-2\/","title":{"rendered":"Visual Studio Tools for Unity 2.2"},"content":{"rendered":"<p>A few months back we released <a href=\"http:\/\/blogs.msdn.com\/b\/visualstudio\/archive\/2015\/09\/08\/unity-5-2-and-visual-studio-tools-for-unity-2-1.aspx\">Visual Studio Tools for Unity 2.1<\/a> (VSTU), the first release to be natively supported by Unity on Windows, making it much easier for game developers to use the rich capabilities of the Visual Studio IDE while <a href=\"https:\/\/www.visualstudio.com\/features\/unitytools-vs\">developing Unity games<\/a>.<\/p>\n<p>Today, we\u2019re pleased to announce the VSTU 2.2 release that fixes common integration issues that developers are facing.<\/p>\n<p>You can download VSTU directly from Visual Studio or from the Visual Studio Gallery:<\/p>\n<ul>\n<li><a href=\"https:\/\/visualstudiogallery.msdn.microsoft.com\/8d26236e-4a64-4d64-8486-7df95156aba9\"><b>Visual Studio 2015 Tools for Unity<\/b><\/a><b><\/b><\/li>\n<li><a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/20b80b8c-659b-45ef-96c1-437828fe7cf2\"><b>Visual Studio 2013 Tools for Unity<\/b><\/a><\/li>\n<li><a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/7ab11d2a-f413-4ed6-b3de-ff1d05157714\"><b>Visual Studio 2012 Tools for Unity<\/b><\/a><b><\/b><\/li>\n<li><a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/6e536faa-ce73-494a-a746-6a14753015f1\"><b>Visual Studio 2010 Tools for Unity<\/b><\/a><\/li>\n<\/ul>\n<h2>Main changes<\/h2>\n<ul>\n<li>The VSTU installer properly installs all the information that Unity looks for before enabling the native VSTU support.<\/li>\n<li>For Unity on OS X with and Visual Studio in a virtual machine, Visual Studio properly detects and debugs Unity on the host.<\/li>\n<li>For Unity 4.6, VSTU properly generates references to UnityEngine and UnityEditor.<\/li>\n<li>The C# language version is now restricted to C# 4, the latest version of the language supported by Unity.<\/li>\n<li>Fixed an error in the Unity package that could appear for projects without any script.<\/li>\n<\/ul>\n<p>And for those of you working on multiplayer games, we\u2019ve added support for the new networking messages in our wizards as shown below. Of course they\u2019re context sensitive, and only appear if you\u2019re actually working in a NetworkBehaviour.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/2016-02-04-Unity-1.png\"><img decoding=\"async\" class=\" aligncenter\" style=\"float: none;padding-top: 0px;padding-left: 0px;margin-left: auto;padding-right: 0px;margin-right: auto;border: 0px\" title=\"Implement MonoBehaviors dialog\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2016\/02\/clip_image0022.png\" alt=\"Implement MonoBehaviors dialog\" width=\"635\" height=\"480\" border=\"0\" \/><\/a><\/p>\n<h2>Updating to VSTU 2.2<\/h2>\n<p>The easiest way to update is through the update tab of the Visual Studio extension manager. To do it manually, download and install the VSTU version that matches the Visual Studio version you have installed and want to use with Unity, as described in the following sections.<\/p>\n<h2>Installing VSTU 2.2<\/h2>\n<h2>Unity 5.2 or above<\/h2>\n<p>VSTU is natively supported and you just need to reinstall VSTU. In this scenario, you don\u2019t need to import the VSTU package in your project, and you should delete the UnityVS folder of your project if you were using VSTU with a previous version of Unity. The solution we generate won\u2019t be prefixed by UnityVS.<\/p>\n<p>Just set Visual Studio to be the external editor in Unity:<\/p>\n<p><img decoding=\"async\" class=\" aligncenter\" style=\"float: none;padding-top: 0px;padding-left: 0px;margin-left: auto;padding-right: 0px;margin-right: auto;border: 0px\" title=\"Setting Visual Studio as the external editor for Unity\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2016\/02\/2016-02-04-Unity-2.png\" alt=\"Setting Visual Studio as the external editor for Unity\" width=\"499\" height=\"426\" border=\"0\" \/><\/p>\n<p>And you\u2019ll see that the VSTU support is enabled in the About window of Unity as shown below.<\/p>\n<p><img decoding=\"async\" class=\" aligncenter\" style=\"float: none;padding-top: 0px;padding-left: 0px;margin-left: auto;padding-right: 0px;margin-right: auto;border: 0px\" title=\"Verifying that Visual Studio Tools for Unity are enabled\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2016\/02\/2016-02-04-Unity-3.png\" alt=\"Verifying that Visual Studio Tools for Unity are enabled\" width=\"570\" height=\"366\" border=\"0\" \/><\/p>\n<h2>Unity 5.1 or below<\/h2>\n<p>You\u2019ll still need to reimport our package in your project. The solution we generate will still be prefixed by UnityVS.<\/p>\n<p>We strongly encourage VSTU users to update to 2.2. VSTU works best with the native support that was released with Unity 5.2, but we continue to support game developers on previous versions of Unity through the use of our VSTU Unity package. The full change log for this release is in our <a href=\"https:\/\/aka.ms\/vstudocs\">documentation<\/a>.<\/p>\n<p>As always, if you have any suggestion for the Visual Studio Tools for Unity, please post them on <a href=\"https:\/\/aka.ms\/uvunity\">UserVoice<\/a>, and if you encounter any issue please report it through the <a href=\"http:\/\/connect.microsoft.com\/visualstudio\">Visual Studio Connect site<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<table style=\"width: 626px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"154\"><b><img decoding=\"async\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px\" title=\"JB Evian\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2016\/02\/JB-Evian.jpg\" alt=\"JB Evian\" width=\"145\" height=\"186\" border=\"0\" \/><\/b><\/td>\n<td valign=\"top\" width=\"472\">\n<p style=\"padding-left: 15px\"><b>Jb Evain<\/b> (<a href=\"https:\/\/twitter.com\/jbevain\">@jbevain<\/a>), Software Engineering Manager, Visual Studio Platform Team<\/p>\n<p style=\"padding-left: 15px\">Jb runs the Visual Studio Tools for Unity experience for the Visual Studio Platform team. He joined Microsoft last year as part of the acquisition of SyntaxTree, a company he founded and where he led the development of UnityVS. He has a passion for developer tools and programming languages, and has been working in developer technologies for over the last decade.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>A few months back we released Visual Studio Tools for Unity 2.1 (VSTU), the first release to be natively supported by Unity on Windows, making it much easier for game developers to use the rich capabilities of the Visual Studio IDE while developing Unity games. Today, we\u2019re pleased to announce the VSTU 2.2 release that [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[472,155],"tags":[237,1383,182,12,196],"class_list":["post-4491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gaming","category-visual-studio","tag-net","tag-c","tag-unity","tag-visual-studio","tag-visual-studio-2015"],"acf":[],"blog_post_summary":"<p>A few months back we released Visual Studio Tools for Unity 2.1 (VSTU), the first release to be natively supported by Unity on Windows, making it much easier for game developers to use the rich capabilities of the Visual Studio IDE while developing Unity games. Today, we\u2019re pleased to announce the VSTU 2.2 release that [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/4491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=4491"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/4491\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=4491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=4491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=4491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}