![]() ![]() Note: the packages should work on newer Ubuntu versions too but we only test the ones listed below. This is getting time-consuming & frustrating.The package repository hosts the packages you need, add it with the following commands. The only guaranteed way I have found so far is a full Reboot. ![]() Attaching to the other seems to work but no breakpoints are hit.Ĭlosing VS & restarting it by double-clicking on a script from Unity does not help, nor does Regenerate Project Files.Įxiting Unity & VS, ensuring all Unity processes are gone via Task Manager & then restarting from Unity Hub may or may not fix the issue. I can attach to one of those versions (seems random which one) and it will correctly hit breakpoints while running. Going to Debug | Attach Unity Debugger shows the same dialog but with 2 instances of Unity running, both Editor copies with different ports, even though I have no other instances of Unity open. I keep getting a situation (at least once a day) where the "Attach To Unity" button suddenly stops working instead it shows the "Select Unity Instance" dialog with no instances available even though I had been attaching and running successfully just 5 minutes earlier. I just started working with Unity 2020.2.1f1, using Visual Studio 2017 v 15.8.9, with Package Manager packages of Visual Studio Code Editor 1.2.3 and Visual Studio Editor 2.0.5. If you continue to have issues, follow the advice of Report a Problem above and feel free to send me a message so I can help troubleshoot to save you some time and pain - my apologies to those who already had to debug this on their own, but many thanks to the community here that stepped up. If you're using 2020.x with VS 2019 and have issues where IntelliSense isn't working or similar debugger options missing, update the "Visual Studio" package in Unity Editor > Windows > Package Manager to version 2.0.2. ![]() This usually means that the Tools for Unity extension is not installed.Īnother common issue recently was with Unity 2020.x versions and the new way external editors integrate - with Unity Packages. ![]() One common reason VS would not show the Attach to Unity option is that the solution/project was not recognized as a Unity project and instead it was opened as a normal C# project. If you're still experiencing trouble like this, please use the Help > Report a Problem menu from Visual Studio to file an issue on Developer Community. I'm reading through the pain here and it's super alarming. I'm the Program Manager of Tools for Unity at Microsoft. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |