DOJumpAnchorPos Method
DOJumpAnchorPos(RectTransform, Vector2, float, int, float, bool)
public static Sequence DOJumpAnchorPos(this RectTransform target, Vector2 endValue, float jumpPower, int numJumps, float duration, bool snapping = false)
Tweens a RectTransform's anchoredPosition to the given value, while also applying a jump effect along the Y axis. Returns a Sequence instead of a Tweener. Also stores the RectTransform as the tween's target so it can be used for filtered operations
Parameters
targetRectTransformendValueVector2The end value to reach
jumpPowerfloatPower of the jump (the max height of the jump is represented by this plus the final Y offset)
numJumpsintTotal number of jumps
durationfloatThe duration of the tween
snappingboolIf TRUE the tween will smoothly snap all values to integers
Returns
- Sequence