{"id":226879,"date":"2019-10-24T10:00:29","date_gmt":"2019-10-24T17:00:29","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=226879"},"modified":"2020-11-04T14:45:13","modified_gmt":"2020-11-04T22:45:13","slug":"update-visual-studio-for-mac-for-an-improved-unity-experience","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/update-visual-studio-for-mac-for-an-improved-unity-experience\/","title":{"rendered":"Update Visual Studio for Mac for an improved Unity experience!"},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter wp-image-226880 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/Picture1.png\" alt=\"glasses focused on Visual Studio for Mac and Unity on a computer\" width=\"974\" height=\"647\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/Picture1.png 974w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/Picture1-300x199.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/Picture1-768x510.png 768w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/p>\n<p>The past year has been an exciting one for Unity developers. Unity is the leading real-time 3D creation platform. It&#8217;s rooted in game development and expanding into other industries, too. Unity Reflect enables developers to view BIM (Building Information Modeling) data in real-time. Did you know that over 60% of AR\/VR content is created with Unity? Likewise, there were also many other innovations for film, automotive, and marketing announced. With all that excitement, you may have missed the debugging improvements and productivity features we&#8217;ve made to Visual Studio for Mac.<\/p>\n<h2>Update for better debugging on Mac<\/h2>\n<p>Earlier this month we <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-for-mac-top-features-of-the-new-editor\/\">talked about the New Editor in Visual Studio for Mac<\/a> and the shared language services with Visual Studio. That brings a native experience, new features, and closer parity of experiences. Visual Studio Tools for Unity continues that theme by sharing the debugger experience for Unity projects between the two IDEs. This means if you&#8217;re working on a Mac, you&#8217;ll get an improved experience from the enhancements we made on Windows over previous years. We\u2019re already <a href=\"https:\/\/twitter.com\/jmillerdev\/status\/1178718520219258880\">hearing great feedback from developers on these improvements<\/a>. That&#8217;s not all, let\u2019s look at the other improvements we&#8217;ve made to Visual Studio for Mac.<\/p>\n<h2>Easily follow best practices and focus on what matters<\/h2>\n<p>I\u2019m excited to share that Visual Studio for Mac and Visual Studio now have diagnostics unique to Unity projects. To begin, we\u2019ve started with over a dozen Unity-specific scenarios where both IDEs recognize and offer informational suggestions or refactoring options. Even better, the IDE suppresses general C# diagnostics that don\u2019t apply to Unity projects. For example, it will no longer <a href=\"https:\/\/forum.unity.com\/threads\/visual-studio-ide0044-make-field-readonly.587848\/\">recommend that you change your [SerializeField] members to readonly<\/a> and break Unity Inspector links. This means you\u2019ll find less noise in your error list, allowing you to focus on what really matters \u2013 scripting your games. To further improve on this, we plan to partner with you and the rest of the community by open sourcing these diagnostics. Together, we\u2019ll improve how the IDE impacts your productivity and best practices.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-226881 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/Picture2.png\" alt=\"Visual Studio for Mac showing refactoring of Unity specific diagnostics\" width=\"974\" height=\"593\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/Picture2.png 974w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/Picture2-300x183.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/Picture2-768x468.png 768w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/p>\n<h2>Iterate faster with background-building and more<\/h2>\n<p>We\u2019re continuing the productivity theme with more quality of life improvements. We noticed that developers don\u2019t always need Visual Studio for Mac to build, which resulted in longer wait times. We made it faster to iterate and debug by reducing the (sometimes) unnecessary work the IDE was doing. In addition, save time with background building using the <strong>Automatic refreshing of Unity\u2019s AssetDatabase on save<\/strong> setting. True by default, this triggers Unity to compile in the background while you\u2019re editing in Visual Studio for Mac.<\/p>\n<p>Finally, save some time by using <strong>Attach to Unity and Play<\/strong> when starting a debug session. This attaches the debugger to Unity and signals for the Editor to Play all in a single step. You can seamlessly iterate on your debugging workflow right from the IDE.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-226883 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/attach-and-play.gif\" alt=\"animated image showing Attach to Unity and Play from Visual Studio for Mac\" width=\"1793\" height=\"1080\" \/><\/p>\n<h2>Ready for a more reliable debugger and productive scripting experience?<\/h2>\n<p>Now is a great time to <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/mac\/update?view=vsmac-2019\">update to the latest version of Visual Studio for Mac<\/a> to take advantage of all the improvements and time-saving productivity features for Unity projects. We\u2019re continuing improvements for Visual Studio for Mac by listening to your feedback and sharing code between the IDEs. If you\u2019d like to help make these tools better, share your feedback and report issues on <a href=\"https:\/\/aka.ms\/feedback\/vsm-home\">Developer Community<\/a>. Be sure to follow <a href=\"https:\/\/twitter.com\/VisualStudioMac\">@VisualStudioMac<\/a> for the latest news and updates!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Visual Studio Tools for Unity team focuses on delivering the best environment to write and debug C# for Unity projects. In this post, we will share some information on the latest features and enhancements that are designed to save you time and help you be more productive. Update to the latest version of Visual Studio for Mac today!<\/p>\n","protected":false},"author":557,"featured_media":226880,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[182,452,4976],"class_list":["post-226879","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-unity","tag-visual-studio-for-mac","tag-vsmac"],"acf":[],"blog_post_summary":"<p>The Visual Studio Tools for Unity team focuses on delivering the best environment to write and debug C# for Unity projects. In this post, we will share some information on the latest features and enhancements that are designed to save you time and help you be more productive. Update to the latest version of Visual Studio for Mac today!<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/226879","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\/557"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=226879"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/226879\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/226880"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=226879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=226879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=226879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}