Table of Contents

DOOffset Method

Namespace
DG.Tweening

DOOffset(Material, Vector2, int, float)

public static TweenerCore<Vector2, Vector2, VectorOptions> DOOffset(this Material target, Vector2 endValue, int propertyID, float duration)

Tweens a Material's named texture offset property with the given ID to the given value. Also stores the material as the tween's target so it can be used for filtered operations

Parameters

target Material
endValue Vector2

The end value to reach

propertyID int

The ID of the material property to tween (also called nameID in Unity's manual)

duration float

The duration of the tween

Returns

TweenerCore<Vector2, Vector2, VectorOptions>