- 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:
- 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 a 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, perform the following 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.
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.
- Data Visualization with D3 4.x Cookbook(Second Edition)
- Learn ECMAScript(Second Edition)
- Git Version Control Cookbook
- Game Programming Using Qt Beginner's Guide
- Vue.js前端開發基礎與項目實戰
- OpenCV for Secret Agents
- Hadoop+Spark大數據分析實戰
- 機械工程師Python編程:入門、實戰與進階
- 精通Scrapy網絡爬蟲
- MySQL數據庫基礎實例教程(微課版)
- Unity Game Development Scripting
- Fast Data Processing with Spark(Second Edition)
- Android應用開發深入學習實錄
- UI設計基礎培訓教程(全彩版)
- C語言王者歸來