Table of Contents

DOHorizontalNormalizedPos Method

Namespace
DG.Tweening

DOHorizontalNormalizedPos(ScrollRect, float, float, bool)

public static Tweener DOHorizontalNormalizedPos(this ScrollRect target, float endValue, float duration, bool snapping = false)

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

Parameters

target ScrollRect
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

Tweener