/// <summary> /// material color tween /// </summary> public GoTweenConfig materialColor(Color endValue, GoMaterialColorType colorType = GoMaterialColorType.Color, bool isRelative = false) { var prop = new MaterialColorTweenProperty(endValue, colorType, isRelative); _tweenProperties.Add(prop); return(this); }
/// <summary> /// material color tween /// </summary> public GoTweenConfig materialColor( Color endValue, GoMaterialColorType colorType = GoMaterialColorType.Color, bool isRelative = false ) { var prop = new MaterialColorTweenProperty( endValue, colorType, isRelative ); _tweenProperties.Add( prop ); return this; }
public MaterialColorTweenProperty(Color endValue, GoMaterialColorType colorName = GoMaterialColorType.Color, bool isRelative = false) : base(endValue, isRelative) { _materialColorName = "_" + colorName.ToString(); }
public MaterialColorTweenProperty( Color endValue, GoMaterialColorType colorName = GoMaterialColorType.Color, bool isRelative = false ) : base( endValue, isRelative ) { _materialColorName = "_" + colorName.ToString(); }
public static GoTween colorFrom(this Material self, float duration, Color endValue, GoMaterialColorType colorType = GoMaterialColorType.Color) { return(Go.from(self, duration, new GoTweenConfig().materialColor(endValue, colorType))); }
public static GoTween colorFrom( this Material self, float duration, Color endValue, GoMaterialColorType colorType = GoMaterialColorType.Color ) { return Go.from( self, duration, new GoTweenConfig().materialColor( endValue, colorType ) ); }