Skip to content

Instantly share code, notes, and snippets.

View dev-chee's full-sized avatar

chi.zheng dev-chee

View GitHub Profile
@dev-chee
dev-chee / AdbProfilerForUnity.txt
Created August 8, 2016 03:43
Enable Unity3d Profiler for Android
Remote profiling can be enabled on Android devices through two different paths : WiFi or ADB.
For WiFi profiling, follow these steps:
Make sure to disable Mobile Data on your Android device.
Connect your Android device to your WiFi network.
Attach your device to your Mac/PC via cable, check the “Development Build” and “Autoconnect Profiler” checkboxes in Unity’s build settings dialog, and hit “Build & Run” in Unity Editor.
When the app launches on the device, open the profiler window in Unity Editor (Window->Profiler)
If the Unity Editor fails to autoconnect to the device, select the appropriate device from the Profiler Window Active Profiler drop down menu. Note: The Android device and host computer (running the Unity Editor) must both be on the same subnet for the device detection to work.
For ADB profiling, follow these steps:
# /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf
host debian {
hardware ethernet 00:0c:29:ab:4f:9a;
fixed-address 192.168.38.100;
}