You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jan-Ole Schümann edited this page Jun 3, 2017
·
2 revisions
Plugin z
Tweens the z-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 z-coordinate of the object is tweened from its current position to 8.
TweenSharp tween = new TweenSharp(gameObject, 5f,
{
z = 8f,
});