Table of Contents

DOPivotX Method

Namespace
DG.Tweening

DOPivotX(RectTransform, float, float)

public static TweenerCore<Vector2, Vector2, VectorOptions> DOPivotX(this RectTransform target, float endValue, float duration)

Tweens a RectTransform's pivot X 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

Returns

TweenerCore<Vector2, Vector2, VectorOptions>