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??
↧