Using Rust Code from Unity for High Performance

Unity gives you several ways to turn C# into machine code. This post is about one it does not ship: a Rust library, called from C# over the same pointers Burst already uses. The interop is about a dozen lines. On the Mono that Unity desktop games ship by default, a game AI workload runs 6.4 times faster in Rust. Against IL2CPP it is 4.7 times faster, and against Unity’s experimental CoreCLR backend and plain .NET 10 about 2.3 times. ...

August 10, 2026 · Oddur Magnusson