Android设备连接Unity Profiler性能分析器
2016-05-10 04:26
591 查看
原网址
Unity提供两种方式让Developer的Android设备连接Profiler进行性能分析:
1、通过wifi,Android设备和计算机处于同一个Wlan中。
2、通过USB ADB
一般情况我们的计算机都是网线,所以我们采用ADB的方式。相比与wifi,ADB也更及时的反应设备性能。
官方的英文文档如下:
按照文档的步骤,这里我来翻译一下:
首先我们先设置ADB:
打开CMD命令行窗口,输入以下命令:
然后 从Unity中Export Android 工程的时候一定要勾选 Development Build
然后在手机上打开游戏。
打开Unity Profiler窗口选择(ADB@127.0.0.1:54999)
然后就能在Profiler进行性能分析了。
Unity提供两种方式让Developer的Android设备连接Profiler进行性能分析:
1、通过wifi,Android设备和计算机处于同一个Wlan中。
2、通过USB ADB
一般情况我们的计算机都是网线,所以我们采用ADB的方式。相比与wifi,ADB也更及时的反应设备性能。
官方的英文文档如下:
http://docs.unity3d.com/Manual/Profiler.html
For ADB profiling, follow these steps: Attach your device to your Mac/PC via cable and make sure ADB recognizes the device (i.e. it shows in adb devices list). Check the “Development Build” checkbox in Unity’s build settings dialog, and hit “Build & Run”. When the app launches on the device, open the profiler window in Unity Editor (Window->Profiler) Select the AndroidProfiler(ADB@127.0.0.1:54999) from the Profiler Window Active Profiler drop down menu. Note: The Unity editor will automatically create an adb tunnel for your application when you press “Build & Run”. If you want to profile another application or you restart the adb server you have to setup this tunnel manually. To do this, open a Terminal window / CMD prompt and enter adb forward tcp:54999 localabstract:Unityinsert bundle identifier here Note: The entry in the drop down menu is only visible when the selected target is Android. If you are using a firewall, you need to make sure that ports 54998 to 55511 are open in the firewall’s outbound rules - these are the ports used by Unity for remote profiling.
按照文档的步骤,这里我来翻译一下:
首先我们先设置ADB:
打开CMD命令行窗口,输入以下命令:
adb forward tcp:54999 localabstract:Unity-com.thisisgame.gamedemo
然后 从Unity中Export Android 工程的时候一定要勾选 Development Build
然后在手机上打开游戏。
打开Unity Profiler窗口选择(ADB@127.0.0.1:54999)
然后就能在Profiler进行性能分析了。
相关文章推荐
- Unity5中叹为观止的实时GI效果
- Unity3D制作简单的太阳系
- unity 判断触摸坐标是否落在ui上
- Unity3D+moba+技能指示器(一)
- Unity:DIY自己的虚拟现实世界!
- 老司机教你如何用Unity和Cardboard把3D游戏做成VR游戏
- Unity Shaders and Effects Cookbook (6-4) GUI 和 透明度
- Unity Input Touch fingerId
- Unity知识三:两种方式实现切水果的刀痕
- 【翻译】 Unity3D VR 教程:4.VR中的用户界面
- Unity学习笔记13——代码动态加载Prefab预设体
- [置顶] Unity中集成ShareSDK(3.X)的功能-IOS平台
- Unity3d 简单实现物体旋转缩放移动
- 探究eclipse转AS,解决65K问题---UNITY游戏相关
- unity + vs 开发插件名称
- 006-实现Unity3d获取设备的GPS信息(经度纬度信息)
- Unity-3D 粒子光圈效果
- Unity UGUI 实现简单拖拽功能
- Part2:Unity学习笔记十 - Space Shooter
- Unity3d本地上传并且裁剪图片-----iOS平台