DOOffset Method
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
targetMaterialendValueVector2The end value to reach
propertyIDintThe ID of the material property to tween (also called nameID in Unity's manual)
durationfloatThe duration of the tween
Returns
- TweenerCore<Vector2, Vector2, VectorOptions>