public static ITween <Vector4> vector4PropertyTo(object self, string propertyName, Vector4 from, Vector4 to, float duration) { var tweenTarget = new PropertyTarget <Vector4>(self, propertyName); var tween = new Vector4Tween(tweenTarget, from, to, duration); return(tween); }
public static ITween <Vector4> ZKVector4To(this Material self, Vector4 to, float duration, string propertyName) { var tweenTarget = new MaterialVector4Target(self, propertyName); var tween = new Vector4Tween(tweenTarget, self.GetVector(propertyName), to, duration); return(tween); }
/// <summary> /// tweens any Material Vector4 property /// </summary> /// <returns>The vector4 to.</returns> /// <param name="self">Self.</param> /// <param name="to">To.</param> /// <param name="duration">Duration.</param> /// <param name="propertyName">Property name.</param> public static ITween <Vector4> ZKVector4To(this Material self, Vector4 to, float duration, string propertyName) { var tweenTarget = new MaterialVector4Target(self, propertyName); var tween = Vector4Tween.create(); tween.initialize(tweenTarget, to, duration); return(tween); }