Skip to content
Jan-Ole Schümann edited this page Jun 3, 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 
     { 
    "alpha" = 0f 
 });
Clone this wiki locally