Skip to content
Jan-Ole Schümann edited this page May 21, 2017 · 1 revision

Plugin y

Tweens the y-coordinate of a GameObject, Transform or RectTransform. If the target object is a GameObject, the plugin uses rectTransform.AnchoredPosition if the GameObject has a RectTransform, otherwise transform.Position.

Example

In the example below, the y-coordinate of the object is tweened from its current position to 8.

 TweenSharp tween = new TweenSharp(gameObject, 5f, new Dictionary<string, object>() { 
    {"y",8f}, 
 });
Clone this wiki locally