UxrPositionTween.MoveOut Method

Creates and starts a position tweening animation for the anchoredPosition of a Unity UI Graphic component. The animation will start in the initial graphic position and end with an offset with respect to the initial graphic position.

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

Syntax

C#

public static UxrPositionTween MoveOut(
	Graphic graphic,
	float horizontalOffset,
	float verticalOffset,
	UxrInterpolationSettings settings,
	Action<UxrTween> finishedCallback = null
)

Parameters

 

graphic
Type: Graphic
Target graphic
horizontalOffset
Type: System.Single
Horizontal offset to the initial x position where the animation will end.
verticalOffset
Type: System.Single
Vertical offset to the initial y position where the animation will end.
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: UxrPositionTween
Tweening component that will update itself automatically. Can be used to stop the animation prematurely or change parameters on the fly.

See Also

Reference

UxrPositionTween Class
UltimateXR.Animation.UI Namespace