Click or drag to resize

SceneDirectorFade Method

Fade the screen.

Can be await-ed upon.

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static UniTask Fade(
	float to,
	Nullable<float> from = null,
	Nullable<Color> color = null,
	float time = 1f,
	Action onComplete = null
)
Request Example View Source

Parameters

to
Type: SystemSingle
To alpha.
from (Optional)
Type: SystemNullableSingle
From alpha. Current if not specified.
color (Optional)
Type: SystemNullableColor
Fade color. Default if not specified.
time (Optional)
Type: SystemSingle
Time to take.
onComplete (Optional)
Type: SystemAction
Method to call when done.

Return Value

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