Click or drag to resize

SceneDirectorReloadScene Method

Reload the active scene.

Can be await-ed upon.

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static UniTask ReloadScene(
	FadeMode fadeMode = FadeMode.FadeOutIn,
	Nullable<Color> fadeColor = null,
	float fadeTime = 1f,
	bool additive = false,
	Action<float> onLoadProgress = null,
	Action onLoadComplete = null,
	Action onComplete = null
)
Request Example View Source

Parameters

fadeMode (Optional)
Type: KitFadeMode
How to fade?
fadeColor (Optional)
Type: SystemNullableColor
Fade color. Default if not specified.
fadeTime (Optional)
Type: SystemSingle
Time to take for fading.
additive (Optional)
Type: SystemBoolean
Whether to load the scene additively.
onLoadProgress (Optional)
Type: SystemActionSingle
Method to call when loading progresses.
onLoadComplete (Optional)
Type: SystemAction
Method to call when loading completes.
onComplete (Optional)
Type: SystemAction
Method to call when loading and fading (if applicable) completes.

Return Value

Type: UniTask
A UniTask that emits when fading's done.
See Also