-
Notifications
You must be signed in to change notification settings - Fork 1
Jan-Ole Schümann edited this page Jun 3, 2017
·
4 revisions
Tweens the x-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.
In the example below, the x-coordinate of the object is tweened from its current position to 8.
TweenSharp tween = new TweenSharp(gameObject, 5f, new
{
x = 8f,
});