Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Change build settings from script

Discussion in 'Editor & General Support' started by QFSW, Jan 25, 2016.

  1. QFSW

    QFSW

    Joined:
    Mar 24, 2015
    Posts:
    2,905
    Hi all, i am making an editor script which performs successive builds
    How would one change properties such as optimisation level for WebGL, or things like autoconnecting profilers?
    many thanks
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,555
    multimediamarkers likes this.
  3. QFSW

    QFSW

    Joined:
    Mar 24, 2015
    Posts:
    2,905
    Thanks, I'll check that out
     
  4. QFSW

    QFSW

    Joined:
    Mar 24, 2015
    Posts:
    2,905
    Unfortunately what I was aiming to do seems to be impossible, however that was still a useful read. Thanks
     
  5. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,555
    What are you trying to do ? there are other ways besides the PlayerSettings API.
     
  6. QFSW

    QFSW

    Joined:
    Mar 24, 2015
    Posts:
    2,905
    If you build to WebGL you can change the optimisation level, choosing a balance between build speed and game efficiency. I wanted to add a toggle to my editor script for this, as it allows building to WebGL from it
     
  7. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,555
  8. QFSW

    QFSW

    Joined:
    Mar 24, 2015
    Posts:
    2,905
    Ah, that's got a ton of stuff which is gonna come in really useful
    You have my thanks