Search Unity

Resolved Build Scripts: Set Export Project flag programmatically

Discussion in 'Android' started by waldgeist, Dec 5, 2019.

  1. waldgeist

    waldgeist

    Joined:
    May 6, 2017
    Posts:
    388
    I want to optimise my custom build scripts in a way that for a development build (started by a custom menu item) the "Export Project" option is enabled automatically, so I can use the Android Studio project.

    However, I can't find a way to set this flag. It's not available in any of the BuildOptions, BuildTarget, or BuildTargetGroup enums.

    Is there any way to set this flag programmatically?
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,917
    It's https://docs.unity3d.com/ScriptReference/BuildOptions.AcceptExternalModificationsToPlayer.html
     
  3. waldgeist

    waldgeist

    Joined:
    May 6, 2017
    Posts:
    388
  4. devluz

    devluz

    Joined:
    Aug 20, 2014
    Posts:
    66
    fivePixels likes this.
  5. fivePixels

    fivePixels

    Joined:
    May 15, 2015
    Posts:
    7