Unity构建系统:内部与gradle [英] Unity build systems: internal vs gradle

查看:616
本文介绍了Unity构建系统:内部与gradle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在任何地方都找不到内部和gradle之间的区别. (我可以找到有关gradle的信息,但不幸的是找不到有关内部的信息)

I cannot find anywhere what are the differences between internal and gradle. (I can find info about gradle, but unfortunately not about internal)

有人可以写利弊,哪个更好用,还是取决于您正在创建的应用程序?

Can someone write pros and cons and which one is better to use, or it depends on app you are creating?

推荐答案

内部(默认)用于通过编辑器在Android上构建甚至运行Unity项目.这可以通过 Build and Run 按钮完成.

The Internal(Default) is used to build and even run your Unity Project on Android from the Editor. This can be done with the Build And Run button.

Gradle(新)选项为您提供了 extra 选项,如果 Export Project,可以将您的Unity项目导出到Android Studio项目中选项已选中.在导出项目仅可当摇篮(新)的中选择选中的选项. Gradle(新)选项仅在Android平台上最有用.

The Gradle(New) option gives you extra option to export your Unity project into Android Studio project if the Export Project option is checked. The Export Project option can only be checked when Gradle(New) is selected. Gradle(New) option is mostly useful for the Android platform only.

Gradle(新)的另一个优点是,它允许您指定自己的gradle文件来构建Unity项目.只需将gradle文件命名为"mainTemplate.gradle" 并将其放置在<ProjectName>Assets\Plugins\Android目录中即可.

Another advantage of Gradle(New) is that it allows you to specify your own gradle file to build your Unity Project. Just name the gradle file "mainTemplate.gradle" and put it in the <ProjectName>Assets\Plugins\Android directory.

过去,要在构建中使用gradle文件,您必须将Unity Project导出为 Android Project ,然后使用第三方软件,例如 Android Studio Eclipse 为您的应用添加gradle支持. Gradle(新)使这一过程变得更加容易.现在,您可以使用 Gradle(New)选项完全不导出项目.

In the old days, to use gradle file in your build, you must export the Unity Project as Android Project then use a third party software like Android Studio or Eclipse to add gradle support to your app. The Gradle(New) made that easier. You can now do that without exporting the project at-all with the Gradle(New) option.

这篇关于Unity构建系统:内部与gradle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆