How to setup MonoDevelop w/ Unity 3?

Hi there,

I just installed the final of Unity 3 (haven’t used any betas). I downloaded and installed MonoDevelop 2.4 and set it as default editor in Unity.

Now there are two glitches that bug me:

First, when I double click a file from the editor, a new instance of MonoDevelop is opened instead of a new tab in an existing one.

Second, while it does seem to open the according .sln of the project with MonoDevelop, it does not open the the file I double clicked! It just picks up the session as last saved by MonoDevelop.

Am I the only one? Can it be fixed?

Thanks,
Jan

This bug has been reported, but if you want to follow it up, contact support@unity3d.com and quote the case number 365357.

Looks like I’m too stupid - how exactly should this mail be formatted? I already sent two mails, one with the case number quoted in the topic and one in the body. Both times I got mails back reporting that a new case has been opened for my “question”, not that I subscribed to the existing case…

I couldn’t find any documentation about this procedure, but it seems really handy since there is no (open) bug-tracker for unity (that I know of), so I would appreciate you elaborating it here…

Thanks,
Jan

Sorry for double posting here, but I found the solution.

I didn’t realize that a special version of MonoDevelop was shipped with Unity 3! Picking that version instead of the version I installed myself as default editor works perfect!

There isn’t really a required format for these messages where you are really just checking up on an existing case. However, there is a bug report application (menu: Help > Report A Bug) which you should use if you believe you might have found a new bug. The procedure followed is that all new reports get their own case number. Then, when they are reviewed by the QA team they will be connected to the existing reports they are related to.

Anyway, I’m glad you solved your problem!

Hello Guys,

Where do I find the MonoDevelop thats shipped with Unity3?

Originally, I went to Unity > Preferances > External Script editor and it was empty so I then downloaded the monodevelop 2.4 from http://monodevelop.com/ Then added it as a external editor.

If it ships with Unity3 how would I find that version? instead of the version I downloaded?

Im using a Mac Osx 10.5 and everytime I try and double click a script file inside of unity monodevelop opens as well as unitron?

Im a little confused Can one of you guys help me out?

Zeek

I don’t know about Macs, but on windows the MonoDevelop distribution shipped with Unity 3 was in …/Unity/MonoDevelop, right besides …/Unity/Editor, where the Unity Editor itself is installed.
You can set up this copy of MonoDevelop in unity by going to the preferences and pick the binary from …/Unity/MonoDevelop/MonoDevelop.ink (or however it’s called on Macs)

You can uninstall your additional copy of MonoDevelop.

Thanks Jouz :wink:

Ive deleted the downloaded copy and found the Unity version of monodevelop inside the Unity folder and browsed to the correct version :slight_smile:

Im still having some issues with the Unitron opening along with monodevelop though?
But it looks like I might be lost for a while Just figuring out he steps to open a script in unity and having Monodevelop open it correctly the solution files etc have me totally lost lol.

But thank you for the speedy response :slight_smile: I gotta find some documentation or find a tutorial on how to set things up.

Zeek

http://docwiki.unity3d.com/index.php?n=Main.HOWTO-MonoDevelop

You’re welcome :slight_smile:

Ok so heres what I figured out, I guess Im not the brightest?

  1. Create New Unity Project (on the desktop)
  2. Create a script (assets folder)
  3. Assets > Sync Mono Development Project (monodevelopment opens, just leave it be)
  4. Go Back to the desktop Open your project that Unity originally created, Should see “projectname.sin” in there next to Assets folder.
  5. Doubleclick it.
  6. Go back to monodevelop and I can now see the game name, Asstes folder, and inside of there is the script that was created in step 2
  7. double click my script (inside of monodevelop) Edit and save. (something like print(“finally”); add script to camera hit play and it works
    8)Create a new script inside of Unity called secondScript Now the moment of truth Double-click it
  8. Yay! its in the assets (monodevelop) then you have to double-click it (secondScript.cs) and its open for you to edit.

I had a hard time figuring this out because everytime I tried to double-click a script I created in Unity, Monodevelop would open and there would be a bunch of options about creating Solutions but Id get lost creating new solutions for no reason lol when all I had to do was Sync (step 3) then open the actual .sin file which is located in the project folder you created next to the Assets folder.

Glad thats solved, Something so simple yet trapped me for 4 hours lol

Now the trick is how to get Unitron to stop opening at the same time when You click on a script inside of unity?

I guess I could just click on the .sin MD file, if it gets to me, too much lol.

Unity and the forums are Awesome I love this place!
If theres a better way Please let me know.

Zeek

Have you looked at the link I posted above?

There even is a screenshot of the dialog where you can set MonoDevelop as default editor in Unity (replacing unitron).

Yep Thats One of the first things I did, after deleting the downloaded version of Monodevelop and using the Unity Provided Version. Unity > Preferences > Monodevelop (Unity version).

But no luck Unitron still wants to open. Setting the preferences was the easy part lol Im bright enough for that lol

Maybe I’ll delete it all and re-download a fresh Unity and see if hat works :wink:
Zeek

I’m having the same problem. I have MonoDevelop set up without problem on one machine, but on my other computer, when I click on a script, the script opens in Unitron and Mono simply launches.

I’ve tried re-installing and a bunch of other things, but seem unable to stop Unitron from launching whenever I click on a script (and MonoDevelop is selected in preferences)

I found a (hacky) solution.

If you are still opening Unitron when MonoDevelop is chosen as your editor, all you need to do is rename the Unitron executable to something else. Then MonoDevelop opens the correct file.

If you need the ‘Solution’ displayed in MonoDevelop, you still need to click on the projectname.sin file like zeek suggests above.