 | SceneDirectorFade Method |
Fade the screen.
Can be await-ed upon.
Namespace:
Kit
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntaxpublic static UniTask Fade(
float to,
Nullable<float> from = null,
Nullable<Color> color = null,
float time = 1f,
Action onComplete = null
)
Request Example
View SourceParameters
- 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:
UniTaskA UniTask that emits when fading's done.
See Also