Specify build profile on BuildPipeline.BuildPlayer

Hello,

When building a list of scenes using BuildPipeline.BuildPlayer I can specify the target and subtarget but I don’t see how specify a build profile. I found BuildPlayerWithProfileOptions but I don’t see any examples.

Perhaps you took a wrong turn in the manual. This is the buildProfile property. You can assign a BuildProfile to it.

Thanks ! But then how can I pass the list of scenes? There is no scenes like in the BuildPlayerOptions

BuildProfile class has a scenes array. :wink:

Ohh right, thanks! I misunderstood what a build profile was.