Setting up a simple build pipeline with a set of options. This doesn't seem to work.
var options = new BuildPlayerOptions();
options.scenes = scenes;
options.locationPathName = "Builds/OSX/" + name;
options.target = BuildTarget.StandaloneOSX;
options.options = BuildOptions.AutoRunPlayer;
BuildPipeline.BuildPlayer(options);
It properly builds the artifact but fails to auto run it afterwards. Is there something I'm missing?
Edit: As a sidenote, this is added as a editor plugin and attached to a menuitem. Not sure if that changes anything.
↧