官术网_书友最值得收藏!

  • Unity Game Optimization
  • Dr. Davide Aversa Chris Dickinson
  • 304字
  • 2021-06-24 12:12:55

Remote connection to an Android device

There are two different methods for connecting an Android device to the Unity Profiler: either through a Wi-Fi connection or by using the Android Debug Bridge (ADB) tool. Either of these approaches will work from an Apple macOS, or a Windows PC.

Perform the following steps to connect an Android device over a Wi-Fi connection:

  1. Ensure that the Development Build and Autoconnect Profiler flags are enabled when the application is built
  2. Connect both the Android and desktop devices to a local Wi-Fi network
  3. Attach the Android device to the desktop device via a USB cable
  4. Begin building the application with the Build & Run option as usual
  5. Open the Profiler window in the Unity Editor and select the device under Connected Player

The application should then be built and pushed to the Android device through the USB connection, and the Profiler should connect through the Wi-Fi connection. You should then see the Android device's profiling data gathering in the Profiler window.

The second option is to use ADB. This is a suite of debugging tools that comes bundled with the Android Software Development Kit (SDK). For ADB profiling, perform the following steps:

  1. Ensure that the Android SDK is installed by following Unity's guide for Android SDK/NDK setup: https://docs.unity3d.com/Manual/android-sdksetup.html
  2. Connect the Android device to your desktop machine via the USB cable
  3. Ensure that the Development Build and Autoconnect Profiler flags are enabled when the application is built
  4. Begin building the application with the Build & Run option as usual
  5. Open the Profiler window in the Unity Editor and select the device under Connected Player

You should now see the Android device's profiling data gathering in the Profiler window.

To troubleshoot problems with building Android applications and connecting the Profiler to them, consult the following documentation page: https://docs.unity3d.com/Manual/TroubleShootingAndroid.html.

主站蜘蛛池模板: 淮安市| 衡东县| 沛县| 石渠县| 元阳县| 辛集市| 云南省| 陕西省| 镇原县| 南丹县| 津市市| 哈尔滨市| 莎车县| 黔西县| 南皮县| 静宁县| 浦城县| 棋牌| 永福县| 芜湖县| 瑞丽市| 乌拉特后旗| 阜平县| 唐山市| 泰安市| 沾益县| 嘉荫县| 郸城县| 开阳县| 历史| 忻州市| 庐江县| 衡阳市| 堆龙德庆县| 同江市| 安吉县| 石首市| 台州市| 大新县| 玛沁县| 罗平县|