Script will not open

Hi All,
I’m trying to copy the spinning cube demo. I’ve loaded a model. Added a component c# script to it. I can see the script on the inspector. However when I double click it doesn’t open. I’ve tried right click to open the context menu and selected “Edit script” but nothing opens. Can anyone advise please. Thanks

Check your “External Script Editor” setting in the “External Tools” section of the Unity preferences (Edit->Preferences).
The setting, by default, should read “Internal” or “MonoDevelop (built-in)”. If the preference is set to one of these, but it isn’t working, please report back - but it should be possible to work around by browsing to the MD launcher script (by default /opt/Unity/MonoDevelop/bin/monodevelop).

Yep settings as shown. I have found if I open monodevelop then open c# file I can edit. So that seems OK but I don’t this is right? I’m using Lubuntu, perhaps monodevelop is stored in a different locations. \i’ll investigate.

It didn’t work for me either. In fact, even trying to open the included monodevelop manually doesn’t do anything as far as I can tell (also using Lubuntu). I ended up switching it to gvim, which works great.

edit to add: I did eventually install monodevelop manually using apt, then removed it, but didn’t remove its dependencies, and now calling monodevelop from the script from my terminal does seem to work – maybe try that?

Thanks for the advise, I got it working by following the reinstall, then made unity properties point to /usr/bin/monodevelop

1 Like

Got mine working by installing monodevelop (sudo apt-get install monodevelop -y), and setting the “External Script Editor” to /usr/bin/monodevelop