public LTDescr setCanvasColor()
{
this.type = TweenAction.CANVAS_COLOR;
this.initInternal = ()=>{
this.uiImage = trans.gameObject.GetComponent<UnityEngine.UI.Image>();
if(this.uiImage==null){
this.rawImage = trans.gameObject.GetComponent<UnityEngine.UI.RawImage>();
this.setFromColor( this.rawImage!=null ? this.rawImage.color : Color.white );
}else{
this.setFromColor( this.uiImage.color );
}
};
this.easeInternal = ()=>{
newVect = easeMethod();
val = newVect.x;
Color toColor = tweenColor(this, val);
if(this.uiImage!=null){
this.uiImage.color = toColor;
}else if(this.rawImage!=null){
this.rawImage.color = toColor;
}
if (dt!=0f && this._optional.onUpdateColor != null)
this._optional.onUpdateColor(toColor);
if(this.useRecursion)
colorRecursive(this.rectTransform, toColor);
};
return this;
}