- Home /
SwitchActiveBuildTarget vs. buildTarget
Scenario : started out using a modified version of http://wiki.unity3d.com/index.php?title=AutoBuilder but the same "SwitchActiveBuildTarget" was there.
Have a post-processing script that's supposed to run, wrapped in "#if UNITY_IPHONE" definition ... only randomly would it actually execute anything in there when specifying BuildTarget.iPhone on passing to "SwitchActiveBuildTarget()".
However, in looking at http://docs.unity3d.com/Manual/CommandLineArguments.html , can also pass in "-buildTarget" ... which magically increases success ratio of builds, despite also having "SwitchActiveBuildTarget()".
Sooo ... what's going on here? Are they doing same thing? Which one matters more??
Actually might be discrepancy between beta20 vs. beta21.
Confirmed that beta 20 reacts differently with -buildTarget .... see$$anonymous$$gly to the point it doesn't fully load, thus any editor scripts are not recognized.