Version: 2018.4

EditorBuildSettings

class in UnityEditor

/

継承:Object

マニュアルに切り替える

説明

このクラスを使うと、スクリプトをとおしてエディターの ビルド設定 ができます。このクラスの使用例は EditorBuildSettings.scenes を参照してください。

See Also: EditorBuildSettingsScene, EditorBuildSettings.scenes.

Static 変数

scenesビルドに加えたいシーンのリスト。 これは、ビルド設定 ウィンドウに表示されるシーンのリストと同じものです。このリストを修正して、ビルドにどのシーンを加えるかを設定できます。

Static 関数

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.

Events

sceneListChangedA delegate called whenever EditorBuildSettings.scenes is set.

継承メンバー

変数

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameオブジェクト名

Public 関数

GetInstanceIDオブジェクトのインスタンス ID を返します
ToStringReturns the name of the GameObject.

Static 関数

Destroyゲームオブジェクトやコンポーネント、アセットを削除します
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeタイプ type から最初に見つけたアクティブのオブジェクトを返します
FindObjectsOfTypeタイプから見つけたすべてのアクティブのオブジェクト配列を返します
Instantiateoriginal のオブジェクトをクローンします

Operator

boolオブジェクトが存在するかどうか
operator !=二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator ==2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。