Hello -
I am looking to pass both Development and AllowDebugging options through BuildPipeline.BuildPlayer. Is the following the correct way to do this?
string androidBuild = BuildPipeline.BuildPlayer(scenes, pathWithApkExtension, BuildTarget.Android, BuildOptions.Development | BuildOptions.AllowDebugging);
Thanks in advance!
Found the answer. Enumeration types - C# reference | Microsoft Learn
Pass the options as enum bit flags to a variable of type BuildOptions. Then pass it into BuildPipline.BuildPlayer
See adjusted code:
BuildOptions androidBuildOptions = BuildOptions.Development | BuildOptions.AllowDebugging;
string androidBuild = BuildPipeline.BuildPlayer(scenes, pathWithApkExtension, BuildTarget.Android, androidBuildOptions);