{"id":11655,"date":"2017-05-10T13:03:27","date_gmt":"2017-05-10T20:03:27","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/?p=11655"},"modified":"2019-02-14T15:27:15","modified_gmt":"2019-02-14T23:27:15","slug":"unity-game-development-with-visual-studio-for-mac","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/unity-game-development-with-visual-studio-for-mac\/","title":{"rendered":"Unity game development with Visual Studio for Mac"},"content":{"rendered":"<p>In 2014, we released the <a target=\"_blank\" href=\"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2014\/07\/29\/visual-studio-tools-for-unity-1-9\/\">first version of the Visual Studio Tools for Unity (VSTU)<\/a>. Since then, we\u2019ve successfully released multiple versions of the Tools for Unity on Windows, but never had the opportunity to bring our tools to Unity developers running macOS.<\/p>\n<p>Today at the Microsoft Build conference, we announced the general availability of <a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-for-mac-now-generally-available\/\">Visual Studio 2017 for Mac<\/a>. This is a full-featured IDE built for the Mac, to help you create anything from mobile and web apps to games.<\/p>\n<p>We\u2019re excited to include the Tools for Unity in this release, and give the opportunity to Unity developers on macOS to use Visual Studio for Mac.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VSTU-in-VSForMac-Intro.png\"><img decoding=\"async\" title=\"VSTU in VSForMac - Intro\" alt=\"VSTU in VSForMac - Intro\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VSTU-in-VSForMac-Intro.png\" width=\"742\" height=\"419\" class=\"\" \/><\/a><\/p>\n<h2>Setup<\/h2>\n<p>You\u2019ll need at least Unity 5.6.1, the first version of Unity to support Visual Studio for Mac and the Tools for Unity. Getting started could not be easier: In Unity, simply set Visual Studio for Mac to be the external script editor.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VSTU-in-VSForMac-Setup.png\"><img decoding=\"async\" title=\"VSTU in VSForMac - Setup\" alt=\"VSTU in VSForMac - Setup\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VSTU-in-VSForMac-Setup.png\" width=\"450\" height=\"368\" class=\"\" \/><\/a><\/p>\n<p>Opening any C# script from Unity will now launch Visual Studio for Mac.<\/p>\n<h2>Features Highlights<\/h2>\n<h3>One click debugging<\/h3>\n<p>Simply click the start button in Visual Studio for Mac to attach the debugger to the Unity Editor. Even faster, press <b>\u2318 <\/b>Command + Enter.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VSTU-in-VSForMac-Debugging.png\"><img decoding=\"async\" title=\"VSTU in VSForMac - Debugging\" alt=\"VSTU in VSForMac - Debugging\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VSTU-in-VSForMac-Debugging.png\" width=\"715\" height=\"529\" class=\"\" \/><\/a><\/p>\n<p>You can put breakpoints and step through your scripts. You can browse the local variables, analyze the call stack, and evaluate expressions.<\/p>\n<h3>Unity solution pad<\/h3>\n<p>Visual Studio for Mac will display the solution the same way it is displayed in Unity, making it much easier to navigate and find your scripts. You can see it in the screenshot above.<\/p>\n<h3>IntelliSense for Unity messages.<\/h3>\n<p>Unity messages are methods that are called by the Unity game engine. Previously you needed to learn their signature, now Visual Studio for Mac provides code completion for them when writing scripts for Unity.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VSTU-in-VSForMac-Intellisense.png\"><img decoding=\"async\" title=\"VSTU in VSForMac - Intellisense\" alt=\"VSTU in VSForMac - Intellisense\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VSTU-in-VSForMac-Intellisense.png\" width=\"765\" height=\"280\" class=\"\" \/><\/a><\/p>\n<h3>Miscellaneous<\/h3>\n<p>Visual Studio for Mac also provides:<\/p>\n<ul>\n<li>Code coloration for shaders. Visual Studio for Mac supports syntax highlighting for ShaderLab, Unity\u2019s shader format.<\/li>\n<li>Access to the Unity documentation by searching types and members in Unity\u2019s documentation from the IDE. Simply select the text you want to search and press <b>\u2318 <\/b>Command + &#8216; to read their documentation.<\/li>\n<\/ul>\n<h2>Wrapping up<\/h2>\n<p>If you already have Visual Studio for Mac Preview installed, make sure you update to the latest version from within the app, otherwise head on over to <a target=\"_blank\" href=\"https:\/\/www.visualstudio.com\/downloads\/\">VisualStudio.com<\/a> to download the latest release and checkout the <a target=\"_blank\" href=\"https:\/\/www.visualstudio.com\/en-us\/news\/releasenotes\/vs2017-mac-relnotes\">release notes<\/a>.<\/p>\n<p>We want to hear what you think \u2013 please, send us your feedback! You can use Visual Studio for Mac\u2019s \u201c<a target=\"_blank\" href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/mac\/report-a-problem\">Report a Problem<\/a>\u201d or \u201cProvide a Suggestion\u201d dialog (within the Help menu) to provide feedback. Or join the conversation in the Visual Studio for Mac <a target=\"_blank\" href=\"https:\/\/forums.xamarin.com\/\">community forums<\/a>.<\/p>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"600\" border=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"150\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Jb-Evain.png\" width=\"150\" height=\"173\" \/><\/td>\n<td valign=\"top\" width=\"450\"><strong>Jb Evain<\/strong>, Principal Software Engineer Manager\n<a target=\"_blank\" href=\"https:\/\/twitter.com\/jbevain\">@jbevain<\/a><\/p>\n<p>Jb runs the Visual Studio Tools for Unity experience He has a passion for developer tools and programming languages, and has been working in developer technologies for over a decade.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>In 2014, we released the first version of the Visual Studio Tools for Unity (VSTU). Since then, we\u2019ve successfully released multiple versions of the Tools for Unity on Windows, but never had the opportunity to bring our tools to Unity developers running macOS. Today at the Microsoft Build conference, we announced the general availability of [&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":[1195,472,1028,155,1029],"tags":[237,1383,9,880,182,156,452,353],"class_list":["post-11655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cross-platform","category-gaming","category-mobile","category-visual-studio","category-web","tag-net","tag-c","tag-debug","tag-get-started","tag-unity","tag-visual-studio-2017","tag-visual-studio-for-mac","tag-xamarin"],"acf":[],"blog_post_summary":"<p>In 2014, we released the first version of the Visual Studio Tools for Unity (VSTU). Since then, we\u2019ve successfully released multiple versions of the Tools for Unity on Windows, but never had the opportunity to bring our tools to Unity developers running macOS. Today at the Microsoft Build conference, we announced the general availability of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/11655","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=11655"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/11655\/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=11655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=11655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=11655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}