Table of Contents

DOAnchorPosY Method

Namespace
DG.Tweening

DOAnchorPosY(RectTransform, float, float, bool)

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

Tweens a RectTransform's anchoredPosition Y 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 float

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<Vector2, Vector2, VectorOptions>