Table of Contents

DOAnchorPos3D Method

Namespace
DG.Tweening

DOAnchorPos3D(RectTransform, Vector3, float, bool)

public static TweenerCore<Vector3, Vector3, VectorOptions> DOAnchorPos3D(this RectTransform target, Vector3 endValue, float duration, bool snapping = false)

Tweens a RectTransform's anchoredPosition3D to the given value. Also stores the RectTransform as the tween's target so it can be used for filtered operations

Parameters

target RectTransform
endValue Vector3

The end value to reach

duration float

The duration of the tween

snapping bool

If TRUE the tween will smoothly snap all values to integers

Returns

TweenerCore<Vector3, Vector3, VectorOptions>