IL2CPP 是 Unity 支持用于构建通用 Windows 平台 (UWP) 应用程序的唯一 脚本后端为 Unity 中的脚本提供动力的框架。Unity 支持三种不同的脚本后端,具体取决于目标平台:Mono、.NET 和 IL2CPP。但是,通用 Windows 平台仅支持两种:.NET 和 IL2CPP。更多信息
在术语表中查看。当你使用 IL2CPPUnity 开发的脚本后端,你可以在为某些平台构建项目时将其用作 Mono 的替代方案。更多信息
在术语表中查看 构建项目时,Unity 会将来自你的 脚本一段代码,允许你创建自己的组件、触发游戏事件、随时间推移修改组件属性并以任何你喜欢的方式响应用户输入。更多信息
在术语表中查看 的 Microsoft 中间语言代码转换为 C++,然后再创建本地二进制文件。有关 IL2CPP 的更多信息,请参阅 IL2CPP 概述。
主题 | 描述 |
---|---|
在 IL2CPP 中使用 UWP 插件 | 了解如何为 UWP 使用托管和本地 插件在 Unity 之外创建的一组代码,用于在 Unity 中创建功能。在 Unity 中可以使用两种类型的插件:托管插件(使用 Visual Studio 等工具创建的托管 .NET 程序集)和本地插件(平台特定的本地代码库)。更多信息 在术语表中查看。 |
使用 IL2CPP 调试 UWP 应用程序 | 使用 IL2CPP 调试你的代码。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.