4
\$\begingroup\$

This is my first time using Unity and I am following the tutorial for the 2D RogueLike Game. Everythings seems to be working properly, apart that I cant get Visual Studio to launch, if I'm double click my c# scripts.

What I have tried so far:

  • Checked my preferences, that External Script Editor says "Visual Studio 2017"
  • Reinstalled Unity and Visual Studio.

Unity Version: 2019.3.0a2 Personal

Hope somebody can help me.

Additional information:

  • After double click, nothing seems to be happening, even my mouse doesnt show a load icon
  • When I create a new project, the bug (dont know if bug, or my fault) is still there.
  • I can open the .sln file from my project in Visual Studio. Visual Studio can even autocomplete unity based code then, before it was a "miscellaneous file" and didnt autocomplete code like for example "Transform" or "Rigidbody2D".
\$\endgroup\$
  • \$\begingroup\$ This is a good question, and definitely on-topic. Can you tell us if anything happens when you double click a script? If so, edit that into the question. \$\endgroup\$ – Almo May 21 at 18:27
  • \$\begingroup\$ Nothing happends. Nothing opens, no errors, nothing I can see. \$\endgroup\$ – Christopher May 21 at 18:37
  • \$\begingroup\$ Does the same thing happen in a new unity project? \$\endgroup\$ – Ed Marty May 21 at 22:31
  • \$\begingroup\$ The same thing happends, so nothing. \$\endgroup\$ – Christopher May 22 at 6:43
  • 3
    \$\begingroup\$ This seems to be a new problem in this version. I have an existing project that has some script files that I've edited many times in Visual Studio. Since updating to 2019.3.0a2, Unity does nothing when I double click the script files. My advice, don't use an Alpha version of Unity :) \$\endgroup\$ – MrOBrian May 26 at 17:52
0
\$\begingroup\$

Open the Package Manager (Window -> Package Manager) and scroll down to Visual Studio Editor. In the lower right corner of the window there should be a button that says something like "Update to 1.0.11". Click that button.

Just to be on the safe side, do the same for Visual Studio Code Editor.

That resolved the issue for me. For some reason, having an outdated package causes Unity to just do nothing. No errors, warnings, or anything. But as soon as I updated I was able to launch Visual Studio by double clicking a script file.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.