Hi,
I am doing build automation for our unity projects, one step is to specify the unity build output path with batch mode/command line, instead of choosing the output folder when building from editor.
I have checked this page Unity - Manual: Command-line arguments, but can not find an argument for output path.
I’ve also read through several files, like BuildSettings.asset, EditorUserBuildSettings.asset ProjectSettings.asset under \Library folder, and the .asset files under \ProjectSettings folder, still couldn’t find any code that can assign the output path.
I don’t think Unity took all the efforts to create a usable batch mode, but does not give us the liberty to specify output path. Am I missing something here?
Hello,
You can use the IPreprocessBuildWithReport in an editor class to get a build summary which in turn has the path. I’m attempting to modify that now, if something comes up I’ll update.