Unity:将文件添加到android项目

时间:2018-12-04 14:45:14

标签: android unity3d gradle

我有一个Unity应用。 在Android平台上构建(构建系统:gradle)时,可以指定自定义let myarr = [ { "order_id": "241918", "customer_name": "Marietjie", "customer_surname": "Short", "total_items": "44", "completed_items": "17", "percent_complete": 0.38636363636364, "datetime_received": "2018-07-25 15:18:25", "delivery_date": "2018-10-29", "delivery_from": "12:00", "delivery_to": "13:00", "completed": "0", "shopper": "joel" }, { "order_id": "281774", "customer_name": "Ashleigh", "customer_surname": "Hodge", "total_items": "16", "completed_items": "0", "percent_complete": 0, "datetime_received": "2018-10-04 15:59:19", "delivery_date": "2018-10-29", "delivery_from": "12:00", "delivery_to": "13:00", "completed": "0", "shopper": null } ]; let newvals = ["17", "0"]; for (let i = 0; i < newvals.length && i < myarr.length; ++i) myarr[i].percent_complete = newvals[i]; console.log(myarr);模板: enter image description here

还可以在Plugins / Android / res文件夹中提供Android资源。

是否有一种方法可以指定自定义文件,该文件将插入到android项目的根目录中,然后内置到build.gradle中?

0 个答案:

没有答案