/// <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 = ZestKit.cacheVector4Tweens ? QuickCache<Vector4Tween>.pop() : new Vector4Tween(); tween.initialize( 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, self.GetVector( propertyName ), to, duration ); return tween; }