C# Class UnityEngine.SceneManagement.Scene

Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
GetBuildIndexInternal int
GetIsDirtyInternal bool
GetIsLoadedInternal bool
GetLoadingStateInternal LoadingState
GetNameInternal string
GetPathInternal string
GetRootCountInternal int
GetRootGameObjectsInternal void
IsValidInternal bool
SetNameInternal void

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Equals() public method

public Equals ( object other ) : bool
other object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetRootGameObjects() public method

Returns all the root game objects in the scene.

public GetRootGameObjects ( ) : UnityEngine.GameObject[]
return UnityEngine.GameObject[]

GetRootGameObjects() public method

public GetRootGameObjects ( List rootGameObjects ) : void
rootGameObjects List
return void

IsValid() public method

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
return bool

operator() public static method

public static operator ( ) : bool
return bool