# BuildProfile

> Provides a set of configuration settings you can use to build your application on a particular platform.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Build.Profile](/engine/6000.5/script-reference/unityeditor/build/profile.md)
* **Assembly:** UnityEditor.CoreModule
* **Inherits from:** [ScriptableObject](/engine/6000.5/script-reference/unityengine/scriptableobject.md)

```csharp
[HelpURL("build-profiles-reference")]
[ExcludeFromObjectFactory]
public sealed class BuildProfile : ScriptableObject
```

## Remarks

Additional Resources: [BuildPlayerWithProfileOptions](/engine/6000.5/script-reference/unityeditor/buildplayerwithprofileoptions.md).

## Properties

| Property                                                                                                               | Description                                                               |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [overrideGlobalScenes](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/overrideglobalscenes.md) | Overrides the global scene list.                                          |
| [scenes](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/scenes.md)                             | The list of scenes specified in the build profile.                        |
| [scriptingDefines](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/scriptingdefines.md)         | Lists the user-specified script compilation defines in the build profile. |

## Methods

| Method                                                                                                           | Description                                                                                                                                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AddComponent](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/addcomponent.md)           | Adds a ScriptableObject to the build profile as a sub-asset. Only one instance per type can be embedded within a build profile.                                                                                                                                                                            |
| [CreateComponent](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/createcomponent.md)     | Creates a new instance of a given scriptable object and adds it as a sub-asset to the build profile. Only one instance per type can be embedded within a build profile.                                                                                                                                    |
| [GetComponent](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/getcomponent.md)           | Returns a component of type `T`. For [PlayerSettings](/engine/6000.5/script-reference/unityeditor/playersettings.md), returns the global fallback if no [PlayerSettings](/engine/6000.5/script-reference/unityeditor/playersettings.md) component is found. Returns null if the component isn't available. |
| [GetScenesForBuild](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/getscenesforbuild.md) | Obtains the list of scenes used when building with the build profile.                                                                                                                                                                                                                                      |
| [RemoveComponent](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/removecomponent.md)     | Removes a component of type `T` from a given build profile.                                                                                                                                                                                                                                                |

## Static Methods

| Method                                                                                                                               | Description                                                                                                                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CreateBuildProfile](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/createbuildprofile.md)                   | Creates a new build profile asset for the specified platform with the provided name and places it under `Assets/Settings/BuildProfiles`.                                                                                                                                                                                                 |
| [GetActiveBuildProfile](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/getactivebuildprofile.md)             | Gets the active build profile.                                                                                                                                                                                                                                                                                                           |
| [GetActiveComponent](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/getactivecomponent.md)                   | Returns a component of type `T` from the active build profile. For [PlayerSettings](/engine/6000.5/script-reference/unityeditor/playersettings.md), returns the global fallback if no [PlayerSettings](/engine/6000.5/script-reference/unityeditor/playersettings.md) component is found. Returns null if the component isn't available. |
| [GetAllBuildProfiles](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/getallbuildprofiles.md)                 | Retrieves all build profiles available in the project.                                                                                                                                                                                                                                                                                   |
| [GetBuildProfileAtPath](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/getbuildprofileatpath.md)             | Retrieves the build profile asset located at the specified path within the Unity project.                                                                                                                                                                                                                                                |
| [GetInstalledPlatformModules](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/getinstalledplatformmodules.md) | Gets a list of all installed platforms.                                                                                                                                                                                                                                                                                                  |
| [SetActiveBuildProfile](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/setactivebuildprofile.md)             | Sets the active build profile.                                                                                                                                                                                                                                                                                                           |

## Static Events

| Member                                                                                                                 | Description                                                                |
| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [activeProfileChanged](/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile/activeprofilechanged.md) | Callback invoked when the active build profile has changed to a new value. |

## Inheritance

**Inherited Members:**

* [ScriptableObject.CreateInstance(string)](/engine/6000.5/script-reference/unityengine/scriptableobject/createinstance.md#createinstance\(string\))
* [ScriptableObject.CreateInstance(Type)](/engine/6000.5/script-reference/unityengine/scriptableobject/createinstance.md#createinstance\(type\))
* [ScriptableObject.CreateInstance\<T>()](/engine/6000.5/script-reference/unityengine/scriptableobject/createinstance.md)
* [Object.GetEntityId()](/engine/6000.5/script-reference/unityengine/object/getentityid.md)
* [Object.GetHashCode()](/engine/6000.5/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.5/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.5/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.5/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.5/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.5/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.5/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.5/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.5/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.5/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.5/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.5/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.5/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.5/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.5/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.5/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.5/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type)](/engine/6000.5/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type\))
* [Object.FindObjectsByType(Type, FindObjectsInactive)](/engine/6000.5/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.5/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindAnyObjectByType\<T>()](/engine/6000.5/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.5/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindObjectsByType\<T>()](/engine/6000.5/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive)](/engine/6000.5/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.5/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.5/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.5/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.5/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.5/script-reference/unityengine/object/hideflags.md)

### Operators

| Operator                                                                           | Description                                                             |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [operator ==](/engine/6000.5/script-reference/unityengine/object/op-equality.md)   | Compares two object references to see if they refer to the same object. |
| [bool](/engine/6000.5/script-reference/unityengine/object/op-implicit.md)          | Determines whether the object exists.                                   |
| [operator !=](/engine/6000.5/script-reference/unityengine/object/op-inequality.md) | Compares if two objects refer to a different object.                    |
