UxrCanvasAlphaTween.AnimateAsync Method

Same as Animate(CanvasGroup, Single, Single, UxrInterpolationSettings, 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 AnimateAsync(
	CancellationToken ct,
	CanvasGroup canvasGroup,
	float startAlpha,
	float endAlpha,
	UxrInterpolationSettings settings
)

Parameters

 

ct
Type: System.Threading.CancellationToken
Cancellation token to cancel the asynchronous animation. None to ignore.
canvasGroup
Type: CanvasGroup
Target CanvasGroup
startAlpha
Type: System.Single
Start alpha
endAlpha
Type: System.Single
End alpha
settings
Type: UltimateXR.Animation.Interpolation.UxrInterpolationSettings
Interpolation settings that control the animation

Return Value

Type: Task
Task representing the asynchronous process.

See Also

Reference

UxrCanvasAlphaTween Class
UltimateXR.Animation.UI Namespace