.NET framework support

Will Unity support .NET 4.0 framework in the near future?

I would pay for this :-)

Well, I fixed my answer, must admit I am tired and I looked for the values by feeling...

3 Answers

3

There are no concrete short term plans. At some point we defenitely will support it, though a timeframe is hard to give right now.

A transfer protocol you would use for this is irrelevant, you can use any protocol you want.

I created a plugin for setting up TCP connections in a LAN network (untested outside LAN but connecting to the public ip should work), which you can use to send simple data through serialized classes and objects, and convert the data back to its object. ---------- It works in a standard C# application setting, but it can also be integrated into Unity, but it's quite buggy. Here's the link to the project (includes examples, plugins and source). [Networking][1] [1]: https://github.com/Llama-W-2Ls/Networking

This is the roadmap of Mono:

http://www.mono-project.com/Roadmap

You can see that .NET 4.0 is still under development. I don’t know if Unity always comes with the newest version of Mono though.

Unity rarely updates Mono. It's a lot of work and can break stuff, so they probably won't update it again until Unity 4.

I was thinking that hungerGMR was meaning of Unity using the Microsoft framework 4.0. and not a new mono version that has approximately the same features. Because even the .NET 3.5 is not fully supported by mono right now and they are not interoperable....

Unity seems to have also cut some parts out of Mono 2.6 that is in Unity 3, because of iOS compatibility.

To answer the question literally: Unity will never use .NET, since .NET is Windows-only.

What about the Ninja camp project 'Supporting any .NET compiler' ( http://blogs.unity3d.com/2011/03/22/the-ninja-have-assembled/ )?

Not sure what that would entail, but any use of .NET would limit a project to Windows stand-alone only (no Web, iOS, Mac, Android, etc.).

The .NET Framework consists of the CLR and the various runtime libraries (standard assemblies). Mono is an implementation of the .NET Framework, so I wouldn't say that .NET is Windows-only, but probably we're splitting hairs. Certainly it's often called the "Microsoft .NET Framework."