5
\$\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\$
12
  • \$\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, 2019 at 18:27
  • \$\begingroup\$ Nothing happends. Nothing opens, no errors, nothing I can see. \$\endgroup\$ May 21, 2019 at 18:37
  • \$\begingroup\$ Does the same thing happen in a new unity project? \$\endgroup\$
    – Ed Marty
    May 21, 2019 at 22:31
  • \$\begingroup\$ The same thing happends, so nothing. \$\endgroup\$ May 22, 2019 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, 2019 at 17:52

1 Answer 1

1
\$\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\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .