更新时间:2023-01-24 22:19:43
Android设备还可以运行通常用C或C ++编写的 native 代码.
Android devices can also run native code written normally in C or C++.
用C#编写的Unity应用程序被编译为.NET字节码. Unity构建Android应用时,它会基于 Mono 在本机代码中包含一个.NET字节码解释器.当您运行应用程序时,解释器将运行以执行字节码.这就是它可以在Android上运行的方式.
The Unity application written in C# is compiled to .NET bytecodes. When Unity builds an Android app, it includes a .NET bytecode interpreter in native code, based on Mono. When you run the app, the interpreter is run to execute the bytecodes. That's how it can run on Android.