コード例 #1
0
        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);
        }
コード例 #2
0
        /// <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);
        }