SceneFlowManager

class in Digicrafts.SceneFlow

Description

SceneFlowManager is the core script in runtime. It will use to manage the loading and navigation of scenes according the flow defined in Scene Flow graph.

Static Methods

Events

Example

Add events to the SceneFlowManager

void Awake(){
    SceneFlowManager manager = SceneFlowManager.GetInstance();
    manager.OnSceneLoaded+=HandleSceneLoaded;
    manager.OnSceneUnload+=HandleSceneUnload;
}

public void HandleSceneLoaded(SceneInfo previous, SceneInfo loaded)
{
    Debug.Log("[Scene Event: OnSceneLoaded] Previous:" + previous.SceneName + " Loaded: " + loaded.SceneName);
}

public void HandleSceneUnload(SceneInfo current, SceneInfo next)
{
    Debug.Log("[Scene Event: OnSceneUnload] Unloaded: " + current.SceneName);
}

Last updated