So I just upgraded to unity 2018.3, and want to use “where T : system.Enum” for generics, but can’t seem to get unity to switch to roslyn. I changed my settings to
“Scripting Runtime Version = .net 4.x Equivalent”
“Api Compatibility Level = .net 4.x Equivalent”
But “ScriptingBackend” still only has Mono, and IL2CPP. What do I need to do to use Roslyn?
NOTE: the c#7.3 in the app header was just what I named the copy of my project, not actually using c#7.3 yet.
With 2018.3 it should be default. As the scripting runtime is automatically set to .Net 4.x.
Where is “Scripting Runtime Version”?? I can see the other parameters in the “Edit/Project Settings/Player/Other Settings/Configuration” section, but I can’t find “Scripting Runtime Version” (using Windows 10 with editors 2019.2.17f1 and 2019.3.0f1)
The current version for unity is experimental and is DotNet 4.6 + C# 6. To enable C# 7 with unity you will need custom DLLs.
For a tutorial have a look at this video: Click Me