Why Unity3D Use Monodevelop(4.0.1) not the latest Xamarin(5.9) - unity3d

I use Unity 4.6.3 and Monovelop 4 is installed by default. It seems Monodevelop 4 has many bugs.
I see the lastest Monovelop is Xamarin(5.9) http://www.monodevelop.com/download/.
Why Unity did't use Xamarin as its default IDE?
If I want to use Xamarin as Unity's default IDE , do you have some tips or document for me.
By the way, I know I can change the default IDE by Edit=>Preferences=>External Tools=>External Script Editor. I just confuse why unity did't use the latest monodevelop?

You're totally right, I've been working with this old and buggy MonoDevelop version way too long.
But there didn't seem to be a real alternative, at least until last week a colleague of mine found some nice Add-Ins, that make Xamarin 5.9 working quite well with Unity.
Note:
This only works for Unity starting from 4.6.5p2.
But I'd recommend to update Unity to the latest version anyway, as there are a lot of bugfixes (especially for IL2CPP, if you're doing iOS).
Add-Ins
The Xamarin Add-Ins can be found here: http://files.unity3d.com/lukasz/Unity-Addins-5.9.0.zip
Requirements
Xamarin 5.9: http://www.monodevelop.com/download
Unity 4.6.5p2 or above:
releases: http://unity3d.com/get-unity/download/archive
patch releases: http://unity3d.com/unity/qa/patch-releases
Installation
Unpack the zip file. You will now have 4 files with an .mpack extension.
Open MonoDevelop/Xamarin Studio.
Open Add-In Manager
OS X: Xamarin Studio ➔ Add-in Manager.
Windows: Tools ➔ Add-in Manager
Click "Install from file" and select the 4 .mpack files.
Restart MonoDevelop/Xamarin Studio.
You should now be able open, build and debug any Unity generated solution/projects.
Make it the default Script Editor in Unity
Open Unity
Go to Preferences (OS X: CMD + ,)
External Tools ➔ External Script Editor
Use Browse to select your Xamarin installation
Source
The complete guide can be found here:
http://forum.unity3d.com/threads/unity-add-ins-for-monodevelop-xamarin-studio-5-9.329880/

you can just set it as default editor. Edit=>Preferences=>External Tools=>External Script Editor

What's problematic is that you can open CSharp Projects in it, but when you have UnityScript projects in your Solution file it won't open correctly in Xamarin. It says could not load project "Your project.unityproj". So Assembly-CSharp* works, but not Assembly-UnityScript*.
That's the reason I can think of so far!

Related

unity exits when clicking the play button after adding MRTK packages

I have a problem in development of mixed reality app and there has been 2 days that I'm stuck.
My problem is that after adding packages of MRTK to the unity project, if I click the play button, the unity exits (closing) without any error massages or warning.
I tested two versions of unity (2020.3.32f1 and 2020.3.33f1) and both had the same problem.
I am using this link (MRTK document) and also this one Mixed Reality Feature Tool as a guide for configuration and adding the packages of MRTK to my project.
I have also tried two different versions of the packages i.e. (Mixed Reality Toolkit Foundation and Mixed Reality Toolkit Extensions both versions of 2.7.3 and 2.7.2 and for Mixed Reality OpenXR Plugin package I tried 1.4.0 and 1.3.1 versions).
I am using Visual Studio 2019 version 16.11.14
Inside Unity, I am choosing Universal Windows Platform from the Build Settings and I want to practice a little development of mixed reality applications, but I am stuck at the beginning and when ever I press the play button the unity exits (closed) without any warning or error.
Just for more information → I don't have Microsoft Hololens2, therefor I am considering to use Windows Mixed Reality simulator (Mixed Reality Portal).
I can't get what mistakes I am doing, please if you have any idea help me.
Thanks in advance.
There are many steps to configure a Unity Project for Mixed Reality. According to the description, it is hard to determine which step causes the issue. I have created a repository which is implemented with the necessary MR packages, and the configuration has been done. Feel free to pull the repo from https://github.com/sethdu0525/MR-Blank-Project. Please open it and click run to test.
If you still have this issue, you may need to have a clean installation of Unity 2020.3.33f1 (LTS), Visual Studio 2022 and make sure all the required components have been installed, including a comparatively new Windows SDK.
If you have a dump file for the crash, you may also share it and find support from Unity forum -- General Discussion - Unity Forum

Rider does not seem to recognize Unity project

I have used Rider in the past on Unity projects, there was a button to start Unity Play mode from the IDE, and attach the debugger. I am using 2019.2 version of Unity and latest of Rider right now.
I should have some icons like in the documentation here https://www.jetbrains.com/help/rider/Unity.html#.
Nothing show up, and the best I get, is Rider proposing to add a custom configuration... Rider is correctly set as the IDE for Unity in Unity preferences. I do not understand what is going on.
You should go to 'package manager' of unity and upgrade 'Rider package'. Then you have to go to 'preferences' and should see new option appears in external script editor in external tool option select it and your are good to go.
Installed Rider again, while checking every delete checkbox (cache and settings and more), did not re-use the config from previous version (see https://rider-support.jetbrains.com/hc/en-us/community/posts/360005280960-Cannot-attach-Unity-debugger), and also made sure I have Unity support checked. The button is back.
For me (MacOS) it was due to not having mono installed. I opened up visual studio community once, and it prompted me to install some tools. After that I rebooted unity and rider, and everything worked properly.

Cannot get unity hololens project to work

I'm trying to get a project to work that i downloaded this link over here, from github.
I've followed all the (configuration) steps in the install guide and i am using the exact versions of the software as described in the guide.
The problem seems to be that some references to the Windows namespace do not work.
I've tried adding it but i can't get it done in the usual way.
The error messages i get when building in unity:
When i open the project in visual studio 2015 update 3 (after building it in unity):
It seems that the option to simply add the reference in visual studio is not present in this kind of project.
I think this shouldn't be to hard to resolve but i lack the skills and experience as i usually develop windows apps solely in visual studio.
EDIT
These are the configurations I used:
i open the project in visual studio 2015 update 3
You should use Visual Studio 2017 with the latest Win10 SDKs.

Fatal error- Monodevelop-Unity failed to start

I originally installed unity but the monodevelop seems to not been installed as i tried to open a script in unity but nothing come out, saying i should find a software that opens it up when i have already set the preferences to monodevelop(built-in).
Then i reinstalled it again, this time, it contains visual studio too. then it can only open with visual studio. When I tried to open with monodevelop, the following pop-up will apear.
But I have already installed the two things which is /net and gtk. as shown below. what is the problem?
1st time-- install gtk after install unity(no monodev) 2nd time--
install monodevelop with unity i went to the monodev website and it
says xamarin studio not monodevelop
You messed up in the first step.
You have to Uninstall gtk and everything else you installed during this time. This includes Unity too.If possible, do a system restore and set the restore date to the time before you installed any of this.
Now, install Unity, make sure that MonoDevelop is selected from Unity and then install it. Don't install gtk or any other software. When using Unity, MonoDevelop must be installed from Unity and not from any other website. The reason for this is because they are using a customized version of MonoDevelop.

MonoDevelop 3.0.6 Doesn't run

I have unity4 installed on my system.MonoDevelop is bundled with it. I installed MonoDevelop3.0.6. Now when I click the icon to start it it won't run, any suggestions?
The bundled MonoDevelop application is a custom version built specifically for Unity, so you can't just replace it with a later MonoDevelop version and expect it to work. Several users have released guides for using later MonoDevelop versions, e.g. 3 or 4, with Unity, some links for further reading:
http://www.cliffordroche.ca/monodevelop-4-xamarin-studio-debugging-in-unity/
http://forum.unity3d.com/threads/171632-MonoDevelop-4-aka-Xamarin-Studio
As per the last link, if you're coding in C# it seems like you can use MonoDevelop 4 (and maybe 3) by doing this:
On the OS X, I renamed the monodevelop that came with Unity, then put Xamarin Studio into the Unity folder and renamed it MonoDevelop.app. It works perfectly (for C# development that is). It even opens files on the correct line # etc. For Debugging or Unity-Javascript, you need to stick with Unity-Monodevelop.
Permalink
The next Unity releae, 4.3, will bundle MonoDevelop 4.