Unity 是否将脚本编译为 C++?
Does Unity compile scripts to c++?
Unity是否将C#脚本编译为C++?
通常 运行 游戏在 Unity 中是如何工作的?
我在这里看到很多评论完全错误。答案是肯定的,如果您使用 IL2CPP,您可以将 C# 代码转换为 C++ 作为 Mono 的替代方案。(如果您选择在播放器参数中)
When building a project using IL2CPP, Unity converts IL code from
scripts and assemblies to C++, before creating a native binary file
(.exe, apk, .xap, for example) for your chosen platform. Some of the
uses for IL2CPP include increasing the performance, security, and
platform compatibility of your Unity projects.
您可以在 Unity 网站上查看 blog post 了解其工作原理。
或documentation获取有关该主题的更多信息
Unity是否将C#脚本编译为C++?
通常 运行 游戏在 Unity 中是如何工作的?
我在这里看到很多评论完全错误。答案是肯定的,如果您使用 IL2CPP,您可以将 C# 代码转换为 C++ 作为 Mono 的替代方案。(如果您选择在播放器参数中)
When building a project using IL2CPP, Unity converts IL code from scripts and assemblies to C++, before creating a native binary file (.exe, apk, .xap, for example) for your chosen platform. Some of the uses for IL2CPP include increasing the performance, security, and platform compatibility of your Unity projects.
您可以在 Unity 网站上查看 blog post 了解其工作原理。
或documentation获取有关该主题的更多信息