- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 302字
- 2021-07-02 23:21:00
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 using the Android Debug Bridge (ADB) tool. Either of these approaches will work from an Apple Mac, or a Windows PC.
Perform the following steps to connect an Android device over a Wi-Fi connection:
- Ensure that the Development Build and Autoconnect Profiler flags are enabled when the application is built.
- Connect both the Android and desktop devices to a local Wi-Fi network.
- Attach the Android device to the desktop device via the USB cable.
- Begin building the application with the Build & Run option as usual.
- 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, follow these steps:
- 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.
- Connect the Android device to your desktop machine via the USB cable.
- Ensure that the Development Build and Autoconnect Profiler flags are enabled when the application is built.
- Begin building the application with the Build & Run option as usual.
- 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.
For troubleshooting problems with building Android applications and connecting the Profiler to them, consult the following documentation page: https://docs.unity3d.com/Manual/TroubleShootingAndroid.html.
- Web程序設(shè)計(jì)及應(yīng)用
- The Complete Rust Programming Reference Guide
- Getting Started with React
- 深入淺出Java虛擬機(jī):JVM原理與實(shí)戰(zhàn)
- 圖解Java數(shù)據(jù)結(jié)構(gòu)與算法(微課視頻版)
- 精通網(wǎng)絡(luò)視頻核心開發(fā)技術(shù)
- HDInsight Essentials(Second Edition)
- Procedural Content Generation for C++ Game Development
- Python趣味編程與精彩實(shí)例
- Training Systems Using Python Statistical Modeling
- Go語(yǔ)言入門經(jīng)典
- LabVIEW數(shù)據(jù)采集
- 企業(yè)級(jí)Java現(xiàn)代化:寫給開發(fā)者的云原生簡(jiǎn)明指南
- jQuery權(quán)威指南
- 機(jī)器學(xué)習(xí)開發(fā)者指南