SceneActionManager
class in Digicrafts.SceneFlow
SceneActionManager is use to connect the Scene Flow Manager to UIs and your own script. It can use to invoke the SceneAction defined in Scene Flow Graph.
Method | Return | Description |
GetCurrentActionManager | SceneActionManager | Get the action manager in current scene |
GetCurrentActions | SceneAction[] | Get the SceneAction list in current scene |
GetCurrentActionsName | string[] | Get the name list of SceneAction in current scene |
Method | Parameter | Description |
CallAction | string actionKey | Invoke the SceneAction with corresponding key. |
CallActionWithName | string actionName | Invoke the SceneAction with corresponding action name. |
// Invoke the action named "Back to Main" defined in current scene.
SceneActionManager.GetCurrentActionManager().CallActionWithName("Back to Main");
Last modified 4yr ago