SceneManagerExt.Load Method

Creates an awaitable task that asynchronously loads a new scene.

Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Task Load(
	string sceneName,
	LoadSceneMode mode,
	CancellationToken ct = default
)

Parameters

 

sceneName
Type: System.String
Scene to load
mode
Type: LoadSceneMode
Mode in which the scene will be loaded
ct (Optional)
Type: System.Threading.CancellationToken
Optional cancellation token, to cancel the task

Return Value

Type: Task
Awaitable task

See Also

Reference

SceneManagerExt Class
UltimateXR.Extensions.Unity Namespace