Search Unity

Autoconnect Profiler for Unity Pro

Discussion in 'Editor & General Support' started by dddu88, Oct 24, 2014.

  1. dddu88

    dddu88

    Joined:
    Apr 20, 2013
    Posts:
    16
    Hi All,

    I bought my Unity Pro 4.3.4f1, recently I need to do profiling with android app on android device, I could not get it to work, and why under the build setting, the autoconnect Profiler is disabled? anyway to allow me to check or uncheck? by the way, the window ->profiler is enabled.

    Thanks
    David
     
  2. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Did you also buy the Android Pro add-on?
     
  3. dddu88

    dddu88

    Joined:
    Apr 20, 2013
    Posts:
    16
    Thanks for your response, No, I have not bought the Android Pro add-on yet, do I need it for profiler to work? I followed this steps for WIFI connection:
    1. Make sure to disable Mobile Data on your Android device.
    2. Connect your Android device to your WiFi network.
    3. Check the "Autoconnect Profiler" checkbox in Unity's build settings dialog.
    4. Attach your device to your Mac/PC via cable and hit "Build & Run" in Unity Editor.
    5. When the app launches on the device, open the profiler window in Unity Editor (Window->Profiler)
    6. If the Unity Editor fails to autoconnect to the device, select the appropriate device from the Profiler Window Active Profiler drop down menu
    of course no Autoconnect Profler checked, I only have these from Active Profiler drop down:
    1. Editor
    2. Android Player (ADb@127.0.0.1:54999

    and I added IP address of my phone 192.168.1.8, also tried 192.168.1.8:7612, Neither one works,

    I have only one router, so my windows computer and my phone are on the same network, I also did:

    c:\projects\gpstest\Assets\scripts>adb forward tcp:7612 tcp:7612

    c:\projects\gpstest\Assets\scripts>adb tcpip 7612

    c:\projects\gpstest\Assets\scripts>adb connect 192.168.1.8:7612
    connected to 192.168.1.8:7612

    still no luck, when I select 192.168.1.8:7612 from the drop down, it said failed to connect, if select 192.168.1.8, it said attempting to connect, then hang.
    I also tried to turn of firewall on my machine, also I can ping my phone IP from my PC.

    Please help and thanks in advance.

    Dave
     
  4. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
  5. dddu88

    dddu88

    Joined:
    Apr 20, 2013
    Posts:
    16
    Thanks for your response, I like to see Android Player (ADB@192.168.1.8:7612) shown up from the Profiler dropdown menu, instead of Android Player (ADB@127.0.0.1:54999, I have a free Android add-on, why I can see the Android Player (ADB@127.0.0.1:54999, but not Android Player (ADB@192.168.1.8:7612), which should be on the network since I can see it from adb devices.

    Thanks
    Dave
     
  6. pan1cmodehere

    pan1cmodehere

    Joined:
    Jun 12, 2015
    Posts:
    8
    Also "Autoconnect profiler" is becoming active only if you check "Development build".