- 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.
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- 演進式架構(原書第2版)
- 無代碼編程:用云表搭建企業數字化管理平臺
- Java Web開發之道
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- 精通網絡視頻核心開發技術
- C語言程序設計同步訓練與上機指導(第三版)
- Linux:Embedded Development
- Corona SDK Mobile Game Development:Beginner's Guide(Second Edition)
- Yii Project Blueprints
- Go語言底層原理剖析
- Windows Phone 8 Game Development
- Getting Started with Electronic Projects
- Web前端開發最佳實踐
- SFML Game Development