🤔 Unity, huh, how?

🤔

Visual Studio Code Visual Studio Code configuration

As of August 2023 Microsoft has released a new version of the Unity extension for VS Code. The new extension relies on the C# Dev Kit. Do note that this is unlike the previous extensions, so now it falls under a new license similar to Visual Studio Community's.

Steps

Follow all of the configuration steps:

  1. Install a Unity version greater than or equal to 2021.
  2. Ensure the Visual Studio Editor package installed and updated to at least 2.0.20 in UPM (com.unity.ide.visualstudio).
    error

    This is not the Visual Studio Code Editor package, if it is installed you should remove it.

  3. Install the Unity for Visual Studio Code extension.
  4. Set the External Script Editor dropdown in Unity's External Tools preferences (EditPreferencesExternal Tools) to Visual Studio Code.

If you are experiencing issues: