C# Класс UnityEngine.SceneManagement.Scene

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetBuildIndexInternal int
GetIsDirtyInternal bool
GetIsLoadedInternal bool
GetLoadingStateInternal LoadingState
GetNameInternal string
GetPathInternal string
GetRootCountInternal int
GetRootGameObjectsInternal void
IsValidInternal bool
SetNameInternal void

Открытые методы

Метод Описание
Equals ( object other ) : bool
GetHashCode ( ) : int
GetRootGameObjects ( ) : UnityEngine.GameObject[]

Returns all the root game objects in the scene.

GetRootGameObjects ( List rootGameObjects ) : void
IsValid ( ) : bool

Whether this is a valid scene. A scene may be invalid if, for example, you tried to open a scene that does not exist. In this case, the scene returned from EditorSceneManager.OpenScene would return False for IsValid.

operator ( ) : bool

Приватные методы

Метод Описание
GetBuildIndexInternal ( int sceneHandle ) : int
GetIsDirtyInternal ( int sceneHandle ) : bool
GetIsLoadedInternal ( int sceneHandle ) : bool
GetLoadingStateInternal ( int sceneHandle ) : LoadingState
GetNameInternal ( int sceneHandle ) : string
GetPathInternal ( int sceneHandle ) : string
GetRootCountInternal ( int sceneHandle ) : int
GetRootGameObjectsInternal ( int sceneHandle, object resultRootList ) : void
IsValidInternal ( int sceneHandle ) : bool
SetNameInternal ( int sceneHandle, string name ) : void

Описание методов

Equals() публичный Метод

public Equals ( object other ) : bool
other object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetRootGameObjects() публичный Метод

Returns all the root game objects in the scene.

public GetRootGameObjects ( ) : UnityEngine.GameObject[]
Результат UnityEngine.GameObject[]

GetRootGameObjects() публичный Метод

public GetRootGameObjects ( List rootGameObjects ) : void
rootGameObjects List
Результат void

IsValid() публичный Метод

Whether this is a valid scene. A scene may be invalid if, for example, you tried to open a scene that does not exist. In this case, the scene returned from EditorSceneManager.OpenScene would return False for IsValid.

public IsValid ( ) : bool
Результат bool

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool