Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EditorBuildSettings

This class allows you to modify the Editor Build Settings via script.
Read time 4 minutesLast updated 5 days ago

Definition

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

globalScenesThe list of scenes used by all platform profiles and build profiles that do not override global scenes.
scenesThe list of scenes in the active platform profile or build profile to be included in the build.
UseParallelAssetBundleBuildingEnables multi-process AssetBundle building.

Static Methods

Method

Description

AddConfigObjectStore 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".
GetConfigObjectNamesReturn a string array containing the names of all stored config object references.
RemoveConfigObjectRemove a config object reference by name.
TryGetConfigObjectRetrieve a config object reference by name.

Static Events

Member

Description

sceneListChangedA delegate called whenever EditorBuildSettings.scenes is set.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.