How can a game created in Unity can run on an Android device?

前端 未结 1 1785
长情又很酷
长情又很酷 2021-02-19 20:23

I\'m new using Unity and, if I understood correctly, it works using C# language. Android devices can only run Java applications cause that\'s the work of its virtual machine: th

相关标签:
1条回答
  • 2021-02-19 20:30

    Android devices can also run native code written normally in C or C++.

    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.

    0 讨论(0)
提交回复
热议问题