Unity documentation access. You can access the Unity scripting documentation quickly from Visual Studio. If Visual Studio Tools for Unity doesn't find the API documentation locally, it will try to find it online. In Visual Studio, highlight or place the cursor over the Unity API you want to learn about. The modern SteamVR Unity Plugin manages three main things for developers: loading 3d models for VR controllers, handling input from those controllers, and estimating what your hand looks like while using those controllers. On top of managing those things we have an Interaction System example to help get your VR application off the ground. Oculus Documentation. Describes how to get started developing a native application for your Oculus device. Outlines the steps required to get your game or experience up and running using the Unity game engine.
Install Unity support for Visual Studio. Visual Studio Tools for Unity is a free extension that provides support for writing and debugging C# and more. Visit the Tools for Unity overview for a complete list of what the extensions includes. Unity Development with VS Code. Visual Studio Code can be a great companion to Unity for editing and debugging C# files. All of the C# features are supported and more. In the screen below, you can see code colorization, bracket matching, IntelliSense, CodeLens and that's just the start.
Visual Studio Tools for Unity is a free Visual Studio extension that turns Visual Studio into a powerful tool for developing cross-platform games and apps with Unity.
While the Unity editor is great for putting your game world together, you can't write your code in it. With Visual Studio Tools for Unity, you can use the familiar code editing, debugging and productivity features of Visual Studio to create editor and game scripts for your Unity project using C#, and you can debug them using Visual Studio's powerful debugging capabilities.
But Visual Studio Tools for Unity is more than that; it also has deep integration with Unity editor so that you'll spend less time switching back and forth to do simple tasks, provides Unity-specific productivity enhancements, and puts the Unity documentation at your fingertips.
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 code-completion makes it fast and easy to implement Unity API messages like OnCollisionEnter
, including their parameters.
Visual Studio Tools for Unity supports the robust debugging features that you expect from Visual Studio:
Write better code that captures the best practices with Visual Studio's deep understanding of Unity projects.
Unity scripts and message functions are decorated with hints to make it easier to recognize what's provided by Unity and what's your code.
Note
CodeLens support is available in Visual Studio 2019.
The Unity Project Explorer (UPE) is an alternative way to view you project files over the standard Solution Explorer. The UPE filters the files shown and presents them in a hierarchy that matches Unity (View > Unity Project Explorer in Visual Studio 2019).
Note
The Unity Project Explorer is available in Visual Studio 2019. In Visual Studio for Mac, the Solution Pad has similar behaviour by default for Unity projects - no additional views are required.
-->Note
This guide assumes you already have installed Unity using the Unity Hub program. If you are new to Unity, we recommend visiting Unity Learn and complete the Unity Essentials learning path first.
Visual Studio Tools for Unity is a free extension that provides support for writing and debugging C# and more. Visit the Tools for Unity overview for a complete list of what the extensions includes.
Note
This installation guide is for Visual Studio. If you're using Visual Studio Code, please visit the Unity Development with VS Code documentation.
Download the Visual Studio installer, or run it if already installed.
Click Modify (if already installed) or Install (for new installations) for your desired version of Visual Studio.
On the Workloads tab, scroll to the Gaming section and select the Game development with Unity workload.
Note
This installation guide is for Visual Studio for Mac. If you're using Visual Studio Code, please visit the Unity Development with VS Code documentation.
Tools for Unity is included with the installation of Visual Studio for Mac and no separate installation steps are required. You can verify this in the Visual Studio for Mac > Extensions > Game Development menu. Visual Studio for Mac Tools for Unity should be enabled.
It's recommended to keep Visual Studio and Visual Studio for Mac updated so you have the latest bug fixes, features, and Unity support. This doesn't require an update of Unity versions.
Click the Help > Check for Updates menu.
If there is an update available, the Visual Studio Installer will show a new version. Click the Update button.
By default, Unity should already be configured to use Visual Studio or Visual Studio for Mac as a script editor. You can confirm this or change the external script editor to a specific version of Visual Studio from the Unity Editor.
In the Unity Editor, select the Edit > Preferences menu..
Select the External Tools tab on the left.
The External Script Editor dropdown list provides a way to choose different installations of Visual Studio. You can also click Browse... from the dropdown list to add an unlisted version.
If Browse... was selected, navigate to the Common7/IDE directory inside your Visual Studio installation directory and select devenv.exe. Then, click Open.
Once Visual Studio is selected in the External Script Editor list, confirm that the Editor Attaching checkbox is selected.
Close the Preferences dialog to complete the configuration process.
In the Unity Editor, select the Unity > Preferences menu..
Select the External Tools tab on the left.
The External Script Editor dropdown list provides a way to choose different installations of Visual Studio. You can also click Browse... from the dropdown list to add an unlisted version.
Close the Preferences dialog to complete the configuration process.
To learn how to work with and debug your Unity project in Visual Studio, visit Using Visual Studio Tools for Unity.