Search Unity

Enabling Autoconnect profiler + Script Debugging?

Discussion in 'Unity Cloud Build' started by distastee, Jul 9, 2019.

  1. distastee

    distastee

    Joined:
    Mar 25, 2014
    Posts:
    31
    Hey folks,
    Sadly been unable to find this info - how on earth do I enable autoconnect profiler and script debugging in Unity Cloud Build? I'd like to set up a specific build target that enables just these options.

    Thanks for any help!
    -Chris
     
  2. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    127
    For debugging, you can just make your build a Development build in the advanced options.

    As far as I know, autoconnecting profiler isn't officially supported by UCB but it should be simple enough to enable by adding a Pre-Export Method which sets
    EditorUserBuildSettings.connectProfiler
    to true.
     
    distastee likes this.
  3. distastee

    distastee

    Joined:
    Mar 25, 2014
    Posts:
    31
    Perfect! That'll work. Thanks for the quick answer
     
  4. distastee

    distastee

    Joined:
    Mar 25, 2014
    Posts:
    31
    Hey @victorw - Ended up trying this. Unfortunately it seems that cloud build doesn't have access to UnityEditor during pre-export. Unsure if I should be surprised by this or not (holistically it makes sense - but practically its a huge kick in the nuts):

    error CS0103: The name 'EditorUserBuildSettings' does not exist in the current context

    I'm hoping you have some further guidance ---
     
  5. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    127
  6. distastee

    distastee

    Joined:
    Mar 25, 2014
    Posts:
    31
    Nothing like some good public humiliation.

    Yep. That worked. So simple. Appreciate the help!