switchsceneasync - eisclimber/ExPresS-XR GitHub Wiki

RuntimeUtils.SwitchSceneAsync(int,Action)

Method in RuntimeUtils

Summary

Switches the scene to the given index (if possible) and invokes a callback after completion.

public static void SwitchSceneAsync(int sceneIdx, Action callback)

Parameters

Name Description
int sceneIdx The scene's index. Must be added to the BuildSetting to receive an index.
System.Action callback The callback invoked after completing the AsyncLoad. Can be null.
⚠️ **GitHub.com Fallback** ⚠️