Unity5.5.4使用IL2CPP构建Android真机版本

1、需要安装Android NDK,Mac下下载的是一个bin文件,解压NDK .bin文件:

(1)获取文件权限  

chmod a+x android-ndk-r10c-darwin-x86_64.bin

(2)解压出文件

./android-ndk-r10c-darwin-x86_64.bin

2、构建脚本中的参数设置

if(isUseIL2Cpp)
    PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.IL2CPP);
else
    PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.Mono2x);

3、查看Android运行log

cd your_android_sdk_path/platform-tools
./adb logcat -s Unity

 

转载于:https://www.cnblogs.com/dongzee/p/7447132.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值