[Unity]Android手机用Unity Profiler查看性能
2019/12
16
10:12
https://blog.csdn.net/cube454517408/article/details/51700492
一、Unity出包前,勾选 Development Build
二、【配置一次即可】
1、配置入站规则:
进入Windows防火墙,进入高级设置/入站规则/新建规则
规则类型设置为端口,TCP,所有本地端口,允许连接
2、配置ADB路径到系统PATH路径中
三、在cmd中:
adb forward tcp:34999 localabstract:Unity-XXXX.XXXX.XXXX
如果不成功,则:
netstat -ano | findstr “5037”
并杀死占用5037的进程
taskkill /f /pid [PID]
adb start-server
杀了再次执行forward命令
四、开Unity,新建一个空工程,切到Android平台,打开Profiler,在顶部选择Editor下有AndroidPlayer(ADB@127.0.0.1:34999),即可
CopyRights: The Post by BY-NC-SA For Authorization,Original If Not Noted,Reprint Please Indicate From 老刘@开发笔记
Post Link: [Unity]Android手机用Unity Profiler查看性能
Post Link: [Unity]Android手机用Unity Profiler查看性能