I’m trying to connect to the Unity Editor for debugging using Rider, but the connection keeps failing with this error:
“Unable to connect to Unity Editor. Please follow ‘Debug in the Unity Editor’ documentation.”
This occurs when I click the Debug icon in Rider, even if I explicitly select the Unity process.
Here are some facts:
-
I am using Windows 10 Pro, version 22H2
-
I am using Rider 2023.1.4
-
I am using Unity 2023.1.5f1
-
I am using version 3.0.24 of the Rider integration package
-
Closing and re-opening Rider, Unity, Unity Hub, and JetBrains Toolbox did not help.
-
Deleting all generated .csproj and .sln files did not help.
-
The Unity Editor is set to compile C# code in Debug mode.
-
Normal Unity integration works as expected (e.g. I can view asset references just fine).
-
Rebooting my computer worked around the issue.