- 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.
- SQL Server 從入門到項目實踐(超值版)
- 在最好的年紀學(xué)Python:小學(xué)生趣味編程
- Getting Started with React
- Mastering Spring MVC 4
- 神經(jīng)網(wǎng)絡(luò)編程實戰(zhàn):Java語言實現(xiàn)(原書第2版)
- JavaScript從入門到精通(第3版)
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- SSM輕量級框架應(yīng)用實戰(zhàn)
- Swift細致入門與最佳實踐
- Linux C編程:一站式學(xué)習(xí)
- Android應(yīng)用開發(fā)實戰(zhàn)
- 零基礎(chǔ)輕松學(xué)C++:青少年趣味編程(全彩版)
- 多媒體技術(shù)及應(yīng)用
- iOS開發(fā)項目化入門教程
- Web前端開發(fā)技術(shù):HTML、CSS、JavaScript