![]() In the Unity Editor, select the Unity > Preferences menu. Close the Preferences dialog to complete the configuration process.For Unity 2019 and older only, confirm that Editor Attaching is selected.Navigate to the Common7/IDE directory inside your Visual Studio installation directory and select devenv.exe.It's possible to select other versions of Visual Studio that are unlisted and installed in a custom directory. :::image type="content" source="./media/vs/preferences-external-tools.png" alt-text="Screenshot of the External Tools preference menu in the Unity Editor on Windows.":::Īdd a version of Visual Studio that isn't listed On the left, select the External Tools tab. In the Unity Editor, select the Edit > Preferences menu. You can confirm this option or change the external script editor to a specific version of Visual Studio from the Unity Editor. :::zone-end Configure Unity to use Visual Studioīy default, Unity should already be configured to use Visual Studio or Visual Studio for Mac as a script editor. :::image type="content" source="./media/vsm/unity-workload.png" alt-text="Screenshot of the Extension Manager view showing Visual Studio for Mac Tools for Unity enabled."::: Visual Studio for Mac Tools for Unity should be enabled. You can verify the installation in the Visual Studio for Mac > Extensions > Game Development menu. It requires no separate installation steps. Visual Studio for Mac Tools for Unity is included with the installation of Visual Studio for Mac. If you're using Visual Studio Code, please visit the Unity Development with VS Code documentation. This installation guide is for Visual Studio for Mac. Projects are created using the Unity Editor and not Visual Studio. When it's complete, you can create a new project by selecting the Projects tab and selecting New. ![]() The Unity Hub continues installing Unity in the background. If you've already installed Visual Studio 2022, you can deselect the Microsoft Visual Studio Community 2019 option. In the Add modules to your install step, select Done. Select Next to continue the installation. In the Add Unity Version window, select a version of Unity to install. On the left of the Unity Hub window, select the Installs tab. Open the Unity Hub, which was installed during the Visual Studio Tools for Unity installation. When Visual Studio completes the installation process, you're ready to set up Unity. :::image type="content" source="./media/vs/unity-workload.png" alt-text="Screenshot of the game development with Unity workload checkbox in the installer."::: ![]() ![]() Select Modify or Install to complete the installation. If Unity isn't already installed, select Unity Hub under Optional. Select the Workloads tab, then select the Game development with Unity workload. Select Install, or Modify if Visual Studio is already installed. Install Visual Studio and Unityĭownload the Visual Studio installer, or open it if already installed. Visit the Tools for Unity overview for a complete list of what that workload includes.įor Visual Studio Code & Unity, visit the Unity Development with VS Code documentation. The Visual Studio Tools for Unity extension is free and provides support for writing and debugging C# and more. In this quickstart, you learn how to install the Visual Studio Tools for Unity extension and configure it for developing cross-platform games and apps with Unity. Quickstart: Configure Visual Studio for cross-platform development with Unity
0 Comments
Leave a Reply. |