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

Plugin Alpha

Tweens the alpha value of a GameObject, Transform or RectTransform. The value should be between 0 and 1.

Example

The example below shows how to fade out an object from its current alpha value to 0.

 TweenSharp tween = new TweenSharp(gameObject, 5f, new Dictionary<string, object>() { 
    {"alpha", 0f}, 
    {"ease", Quad.EaseOut} 
 });
Clone this wiki locally