6 ms·
Net 5 looks great, but it's unlikely to land in Unity any time soon. Unity runs on its own fork of mono, and if you're trying to build for mobile you'll need to
by stevens32 6y ago
Net 5 looks great, but it's unlikely to land in Unity any time soon. Unity runs on its own fork of mono, and if you're trying to build for mobile you'll need to use the il2cpp backend. Official support is for some versions of C#, not all of dotnet (eg, F# and VB are not supported).
I haven't played with it yet, but I think Stride3d is an open source engine that's actually built on dotnet - I'd expect newer versions would land earlier and wider language support.
- ntSean 6y agoThe IL2CPP backend removes the need for the mono fork and is available in all modern compile targets. The Rosyln compiler also ensures unity's c# is quite modern and features such as C# 8 are on their way! Tangentially, you can use C# 8 now, or even F# or VB in Unity if you choose to first compile them as a DLLs.
- stevens32 6y agoI do use F# as compiled dlls, but like I said it is not supported. Only C# compiled IL is officially supported with il2cpp, and issues related to other languages are liable to be closed as won't fix. There also is no good NuGet story for Unity, which may catch a dotnet dev off guard. On one hand, a lot of things work surprisingly well. On the other, if you're going into it thinking you're going to get the same dotnet development experience in Unity - that's not the experience I've had.