Search Unity

Enable development build via script

Discussion in 'Unity Cloud Build' started by nickfourtimes, Jan 11, 2019.

  1. nickfourtimes

    nickfourtimes

    Joined:
    Oct 13, 2010
    Posts:
    140
    I know there's an option in the UCB web interface to enable Development builds; however, is this possible via scripting as well, during one of the pre-build methods for instance?

    There's BuildOptions.Development, but to my knowledge this has to be passed directly into the BuildPipeline.BuildPlayer() call, which is not accessible to us in UCB.
     
  2. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    321
    technicat, victorw and nickfourtimes like this.
  3. nickfourtimes

    nickfourtimes

    Joined:
    Oct 13, 2010
    Posts:
    140
    Hm... I've tried setting this to true in my cloud build pre-build script, and when I print out the content of EditorUserBuildSettings.development it does show "True"; however, the resulting .apk is still not showing the "Development Build" watermark on-device.