I'm writing a new C# runtime for Unity: https://blog.s-schoener.com/2026-11-25-ilumina/
Does that mean you mix a stock NativeAOT with a custom Unity compatible runtime? And how much of the existing dotnet runtime can you bring over? Can you keep the GC for example?
@DirkRinge I use nothing of stock NativeAOT. All custom. I am not using their GC either. It's much closer to il2cpp in that it also goes through a platform's C++ compiler.
@sschoener Interesting. I thought the switch of Unity to modern dotnet would enable the usage of NativeAOT with all its benefits. Not out of the box maybe but with not too much work.
@DirkRinge it may or may not be possible given the plethora of platforms that Unity supports. Let's assume it's easy to get CoreCLR running on say Playstation - that still leaves web as a target where even C# proper doesn't have a great story yet. Besides that, there is the question of whether that would be a good solution. I think that controlling as much of the pipe as possible (e.g. via il2cpp) is an advantage for Unity. Not that they are using that advantage very well.
@sschoener You have my attention. 👀