SceneHelper

Class in ChivalrousGames.Common

Description

Scene helper. Editor Tool only. Used to collect scenes.

Methods

GetAllScenePaths
public static List GetAllScenePaths();
Return
List A list of scene paths in the Asset Database.
Description

Gets all scene paths from the Asset Database.

GetAllOpenedScenes
public static List GetAllOpenedScenes();
Return
List<Scene> A list of all opened scenes.
Description

Gets all opened scenes.

IsSceneOpenedAtPath
public static bool IsSceneOpenedAtPath(string scenePath);
Parameters
scenePath string Path toward the scene to verify
Return
bool true if scene with specified path is currently opened; otherwise, false.
Description

Determines if is scene with specified path is currently opened.

GetOpenedSceneFromPath
public static Scene GetOpenedSceneFromPath(string scenePath);
Parameters
scenePath string Path toward the scene to get
Return
Scene The opened scene from its path. If the scene is not opened, returns an invalid scene.
Description

Gets the opened scene from its path. If the scene is not opened, returns an invalid scene.