EditorBuildSettings
This class allows you to modify the Editor Build Settings via script.
Read time 4 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: Object
public class EditorBuildSettings : Object
Remarks
See EditorBuildSettings.scenes for an example of how to use this class. Additional Resources: EditorBuildSettingsScene, EditorUserBuildSettings, BuildPlayerOptions.
Static Properties
Property | Description |
|---|---|
| globalScenes | The list of scenes used by all platform profiles and build profiles that do not override global scenes. |
| scenes | The list of scenes in the active platform profile or build profile to be included in the build. |
| UseParallelAssetBundleBuilding | Enables multi-process AssetBundle building. |
Static Methods
Method | Description |
|---|---|
| AddConfigObject | Store a reference to a config object by name. The object must be an asset in the project, otherwise it will not be saved when the editor is restarted or scripts are reloaded. To avoid name conflicts with other packages, it is recommended that names are qualified by a namespace, i.e. "company.package.name". |
| GetConfigObjectNames | Return a string array containing the names of all stored config object references. |
| RemoveConfigObject | Remove a config object reference by name. |
| TryGetConfigObject | Retrieve a config object reference by name. |
Static Events
Member | Description |
|---|---|
| sceneListChanged | A delegate called whenever EditorBuildSettings.scenes is set. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |