- Home /
What is the version of .net in Unity 5?
I have just read this "old" blog http://blogs.unity3d.com/2014/05/20/the-future-of-scripting-in-unity/ telling us that the .net version will be updated. So is Unity 5 uses a .net 4+ version?
No it is still using .NET 2.0/3.5, but it will be updated in the future
References:
Answer by MakakWasTaken · Mar 31, 2015 at 10:31 PM
You can run this to check the version
Debug.Log(System.Enviroment.Version);
There is a typo in there Debug.Log(System.Environment.Version);
Answer by MMOERPG · Jun 15, 2016 at 08:54 PM
Im using 5.3.4f1 and it is .Net 2.0.50727.1433
according to Debug.Log(System.Environment.Version);
Answer by douglasg14b · Mar 31, 2015 at 10:37 PM
You can use some reflection to find out:
using System.Reflection;
Type type = Type.GetType("Mono.Runtime");
if (type != null)
{
MethodInfo displayName = type.GetMethod("GetDisplayName", BindingFlags.NonPublic | BindingFlags.Static);
if (displayName != null)
Debug.Log(displayName.Invoke(null, null));
}
It prints out:
Your answer
Follow this Question
Related Questions
Unity 5.5 API Compatibility 1 Answer
Unity 5 - Current .NET version and futur 0 Answers
How do I use .NET as a Scripting Backend on PC, Mac & Linux Standalone? 0 Answers
how to reference a .NET 4 targeted, native code wrapper assembly in Unity (beta)? 0 Answers
,Can I get runtime data of unity without needing source code? 0 Answers