UxrCanvasAlphaTween.FadeInAsync Method

Same as FadeIn(CanvasGroup, Single, Single, Action(UxrTween)) but for use with async/await.

Namespace: UltimateXR.Animation.UI
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Task FadeInAsync(
	CancellationToken ct,
	CanvasGroup canvasGroup,
	float durationSeconds,
	float delaySeconds = 0f
)

Parameters

 

ct
Type: System.Threading.CancellationToken
Cancellation token to cancel the asynchronous animation. None to ignore.
canvasGroup
Type: CanvasGroup
Target CanvasGroup
durationSeconds
Type: System.Single
Duration in seconds of the fade-in animation
delaySeconds (Optional)
Type: System.Single
Seconds to wait until the animation starts

Return Value

Type: Task
Task representing the asynchronous process.

See Also

Reference

UxrCanvasAlphaTween Class
UltimateXR.Animation.UI Namespace