- Home /
Programatically adjust Unity build target
I have some code that builds a StreamedScene, and find it rather annoying that running this code assigns my Unity build target to a webplayer. Can I programatically detect the current editor build target, then reset it back to that after running the streamedscene build code?
Answer by Aubrey-Falconer · Feb 13, 2011 at 07:57 AM
Cheers for 3.2! Unity team just added this: http://unity3d.com/support/documentation/ScriptReference/EditorUserBuildSettings.SwitchActiveBuildTarget.html
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
EditorGUILayout - Use of unassigned local variable 2 Answers
Problem with OSX/Unity during long bake series (bug? workaround?) 0 Answers
Running a script when Unity starts. 3 Answers
How can i get the center of the entire editor window 0 Answers