Upgrade to 5.6 and enable c# version 6 language

Hi,

I’m new here and using unity just a couple of weeks. I have two stupid questions, but hopefully someone can answere these.

  1. How can I upgrade fomr my UNity 5.5.2f1 to Unity 5.6? Do I have to deinstall and install? If I hit the “Check for updates” button in Unity it says everything is up-to-date.

  2. I’m trying to work with default values for properties in my c# scripts. And my VS 2015 says that I have to switch to language version 6, but I’m using version 4. If I now take a look at unity → edit → project settings ->player, I can only choose .net 2.0 but not .net 4.6. How can I make this available? Did not find anything about this in the forum or just was blind.

Hopefully someone can help me.

Thanks a lot.

  1. Just install the new version of Unity. You don’t have to deinstall the previous version; you can rename it and keep it around if you like.

  2. You can’t use .net 4.6 (or language version 6). Unity is stuck with an older version of Mono.

Hi,

thanks a lot. I try it. That with .net 4.6 is sad, newer c# language versions has so nice features.

Have anice day

best regards

They are working on support for the new .NET, so it should be coming relatively soon hopefully.

Unity utilizes the Mono framework to implement .NET. It’s actually based on .NET 3.5 if I’m not mistaken, which is sort of a superset of .NET 2.0 with some 4.0 features.

So you can actually use LINQ (a feature added in .NET 3.5) and build your game using the 2.0 subset setting just fine.

Currently it’s scheduled for Unity 2017.1.

https://forum.unity3d.com/threads/future-plans-for-the-mono-runtime-upgrade.464327/

2 Likes