public static FloatTween TweenAlpha(this CanvasGroup obj, float duration, float from, float to) { FloatTween node = FloatTween.Allocate(duration, from, to); node.SetUpdate((result) => { obj.alpha = result; }); return(node); }