打包配置說明
打開Profiler:
連接需要工具adb:
adb下載並保存到任意目錄(目錄不要有中文)
我的adb目錄存放在E:\iis\ProfilerConnect(下面會有用到)
手機插入電腦鏈接:
1、手機打開開發者模式
2、打開cmd,輸入E:\iis\ProfilerConnect\adb.exe forward tcp:34999 localabstract:Unity-包名
3、profiler
完事兒
模擬器鏈接:
1、輸入命令(mumu模擬器為例)
E:\iis\ProfilerConnect\adb.exe kill-server
E:\iis\ProfilerConnect\adb.exe start-server
E:\iis\ProfilerConnect\adb.exe connect 127.0.0.1:7555
E:\iis\ProfilerConnect\adb.exe devices
E:\iis\ProfilerConnect\adb.exe forward tcp:34999 localabstract:Unity-com.DefaultCompany.xunluAPathfindingChange
例子
其他模擬器端口
夜神模擬器:adb connect 127.0.0.1:62001
逍遙安卓模擬器: adb connect 127.0.0.1:21503
天天模擬器:adb connect 127.0.0.1:6555
海馬玩模擬器 :adb connect 127.0.0.1:53001
網易MUMU模擬器:adb connect 127.0.0.1:7555
2、profiler
PS:
鏈接手機后再鏈接模擬器,有時候會一直鏈接不上,退出模擬器和unity,重新打開並重新執行命令即可