Search Unity

Changing Play Mode Script through code

Discussion in 'Asset Bundles' started by stevencoull, Feb 12, 2019.

  1. stevencoull


    Sep 15, 2016
    I'm developing a continuous integration platform with Jenkins but hit a wall when it comes to Asset Bundles. Generally we set our play mode to Fast during development/test builds, then Packed for releases only. I'd like to make it possible to choose between which play mode to use when building through Jenkins, but I can't find any documentation that would allow me to change the play mode through the UnityEditor API. Hopefully I'm just overlooking something - any help would be appreciated.