# BuildPlayerOptions

> Provide various options to control the behavior of BuildPipeline.BuildPlayer.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public struct BuildPlayerOptions
```

## Remarks

Additional Resources: [EditorBuildSettings](/engine/6000.6/script-reference/unityeditor/editorbuildsettings.md), [BuildPlayerWindow.DefaultBuildMethods.GetBuildPlayerOptions](/engine/6000.6/script-reference/unityeditor/buildplayerwindow/defaultbuildmethods/getbuildplayeroptions.md)

## Examples

```csharp
using UnityEditor;
using UnityEngine;

namespace BuildDocExamples
{
    public class BuildPlayerOptionsExample
    {
        [MenuItem("BuildDocExamples/Build/Log Build Settings")]
        public static void MyBuild()
        {
            // Log some of the current build options retrieved from the Build Settings Window
            BuildPlayerOptions buildPlayerOptions = BuildPlayerWindow.DefaultBuildMethods.GetBuildPlayerOptions(new BuildPlayerOptions());
            Debug.Log("BuildPlayerOptions\n"
                + "Scenes: " + string.Join(",", buildPlayerOptions.scenes) + "\n"
                + "Build location: " + buildPlayerOptions.locationPathName + "\n"
                + "Options: " + buildPlayerOptions.options + "\n"
                + "Target: " + buildPlayerOptions.target);
        }
    }
}
```

## Properties

| Property                                                                                                                           | Description                                                                                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [assetBundleManifestPath](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/assetbundlemanifestpath.md)               | The path to an manifest file describing all of the asset bundles used in the build (optional).                                                                                                                                   |
| [extraScriptingDefines](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/extrascriptingdefines.md)                   | The additional preprocessor defines you can specify while compiling assemblies for the Player. These defines are appended to the existing Scripting Define Symbols list configured in the Player settings.                       |
| [locationPathName](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/locationpathname.md)                             | Specifies the path for the application to be built.                                                                                                                                                                              |
| [options](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/options.md)                                               | The [BuildOptions](/engine/6000.6/script-reference/unityeditor/buildoptions.md) flags to apply when building the Player.                                                                                                         |
| [previousBuildReportDirectories](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/previousbuildreportdirectories.md) | Use this property to reference the output folders or build report directories from one or more [BuildPipeline.BuildContentDirectory](/engine/6000.6/script-reference/unityeditor/buildpipeline/buildcontentdirectory.md) builds. |
| [scenes](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/scenes.md)                                                 | The Scenes to be included in the build.                                                                                                                                                                                          |
| [subtarget](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/subtarget.md)                                           | The Subtarget to build.                                                                                                                                                                                                          |
| [target](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/target.md)                                                 | The [BuildTarget](/engine/6000.6/script-reference/unityeditor/buildtarget.md) to build.                                                                                                                                          |
| [targetGroup](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/targetgroup.md)                                       | The [BuildTargetGroup](/engine/6000.6/script-reference/unityeditor/buildtargetgroup.md) to build.                                                                                                                                |
