UxrRotationTween.Animate Method

Creates and starts a rotation tweening animation for the [!:RectTransform.localEulerAngles] of a Unity UI Graphic component.

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

Syntax

C#

public static UxrRotationTween Animate(
	Graphic graphic,
	Vector3 startAngles,
	Vector3 endAngles,
	UxrInterpolationSettings settings,
	Action<UxrTween> finishedCallback = null
)

Parameters

 

graphic
Type: Graphic
Target graphic
startAngles
Type: Vector3
Start local angles
endAngles
Type: Vector3
End local angles
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: UxrRotationTween
Tweening component that will update itself automatically. Can be used to stop the animation prematurely or change parameters on the fly.

See Also

Reference

UxrRotationTween Class
UltimateXR.Animation.UI Namespace