Version: 2017.1

EditorSceneManager

class in UnityEditor.SceneManagement

/

継承:SceneManagement.SceneManager

マニュアルに切り替える

説明

エディターでのシーン管理

Static 変数

loadedSceneCount読み込まれているシーン数
playModeStartSceneLoads this SceneAsset when you start Play Mode.
preventCrossSceneReferences他のシーンを指す参照 (cross-Scene references) がエディターで可能かどうかを制御します。

Static 関数

ClosePreviewSceneCloses a preview scene created by NewPreviewScene.
CloseSceneシーンを閉じます。 removeScene フラグが true であれば閉じたシーンは EditorSceneManager から削除されます。
DetectCrossSceneReferencesDetects cross-scene references in a Scene.
EnsureUntitledSceneHasBeenSavedShows a save dialog if an Untitled scene exists in the current scene manager setup.
GetSceneManagerSetupSceneManager の現在の SceneSetUp を返します。
MarkAllScenesDirty読み込まれているすべてのシーンを修正済みとして印を付ける。
MarkSceneDirtyシーンを修正済みとして印を付ける
MoveSceneAfter現在ヒエラルキーウィンドウで開いているシーンの順番を入れ替えられます。 ソースシーンは移動先シシーンの後に移動します。
MoveSceneBefore現在ヒエラルキーウィンドウで開いているシーンの順番を入れ替えられます。 ソースシーンは移動先シーンの前に移動します。
NewPreviewSceneCreates a new preview scene. Any object added to a preview scene will only be rendered in that scene.
NewScene新しくシーンを作成します
OpenSceneエディターでシーンを開きます。
RestoreSceneManagerSetupSceneManager の SceneSetup を復元します。
SaveCurrentModifiedScenesIfUserWantsToAsks you if you want to save the modified Scene or Scenes.
SaveModifiedScenesIfUserWantsToAsks whether the modfied input Scenes should be saved.
SaveOpenScenes開いているシーンをすべて保存します。
SaveSceneシーンを保存します。
SaveScenesシーンのリストを保存します。

Events

newSceneCreatedThis event is called after a new Scene has been created.
sceneClosedThis event is called after a Scene has been closed in the editor.
sceneClosingThis event is called before closing an open Scene after you have requested that the Scene is closed.
sceneOpenedThis event is called after a Scene has been opened in the editor.
sceneOpeningThis event is called before opening an existing Scene.
sceneSavedThis event is called after a Scene has been saved.
sceneSavingThis event is called before a Scene is saved disk after you have requested the Scene to be saved.

デリゲート

NewSceneCreatedCallbackCallbacks of this type which have been added to the newSceneCreated event are called after a new Scene has been created.
SceneClosedCallbackCallbacks of this type which have been added to the sceneClosed event are called immediately after the Scene has been closed.
SceneClosingCallbackCallbacks of this type which have been added to the sceneClosing event are called just before a Scene is closed.
SceneOpenedCallbackCallbacks of this type which have been added to the sceneOpened event are called after a Scene has been opened.
SceneOpeningCallbackCallbacks of this type which have been added to the sceneOpening event are called just before opening a Scene.
SceneSavedCallbackCallbacks of this type which have been added to the sceneSaved event are called after a Scene has been saved.
SceneSavingCallbackCallbacks of this type which have been added to the sceneSaving event are called just before the Scene is saved.

継承メンバー

Static 変数

sceneCount現在読み込まれているシーンの合計数が返されます。
sceneCountInBuildSettingsBuild Settings のシーン数。

Static 関数

CreateSceneランタイムに指定した名前で新しい空のシーンを作成します。
GetActiveScene現在アクティブなシーンを取得します。
GetSceneAtSceneManager の追加されたシーンのリストから指定したインデックスのシーンを取得します。
GetSceneByBuildIndexビルドインデックスからシーン構造を取得します。
GetSceneByNameSceneManager に追加されているシーンの中から、指定した名前のシーンを検索します。
GetSceneByPathSceneManager に追加されていて、指定したアセットパスを持つすべてのシーンを検索します。
LoadSceneBuild Settings の名前かインデックスでシーンを読み込みます。
LoadSceneAsyncバックグラウンドで非同期的にシーンを読み込みます。
MergeScenessourceScene を destinationScene にマージします。
MoveGameObjectToScene現在のシーンから新しいシーンにゲームオブジェクトを移動します。
SetActiveSceneシーンをアクティブにします。
UnloadSceneAsyncDestroys all GameObjects associated with the given scene and removes the scene from the SceneManager.

Events

activeSceneChangedアクティブなシーンが変更されたとき、通知を受け取るデリゲートを追加します。
sceneLoadedAdd a delegate to this to get notifications when a scene has loaded.
sceneUnloadedシーンが解放された際の通知を受け取るデリゲートを追加します。