UxrCanvasAlphaTween.Animate Method

Creates and starts a tweening animation for the alpha value of a CanvasGroup component.

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

Syntax

C#

public static UxrCanvasAlphaTween Animate(
	CanvasGroup canvasGroup,
	float startAlpha,
	float endAlpha,
	UxrInterpolationSettings settings,
	Action<UxrTween> finishedCallback = null
)

Parameters

 

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
finishedCallback (Optional)
Type: System.Action(UxrTween)
Optional callback when the animation finished

Return Value

Type: UxrCanvasAlphaTween
Tweening component that will update itself automatically. Can be used to stop the animation prematurely or change parameters on the fly.

See Also

Reference

UxrCanvasAlphaTween Class
UltimateXR.Animation.UI Namespace