/// <summary>
        /// tweens the RectTransforms anchoredPosition3D property
        /// </summary>
        /// <returns>The kanchored position3 D to.</returns>
        /// <param name="self">Self.</param>
        /// <param name="to">To.</param>
        /// <param name="duration">Duration.</param>
        public static ITween<Vector3> ZKanchoredPosition3DTo( this RectTransform self, Vector3 to, float duration = 0.3f )
        {
            var tweenTarget = new RectTransformTarget( self );
            var tween = Vector3Tween.create();
            tween.initialize( tweenTarget, self.anchoredPosition3D, to, duration );

            return tween;
        }
Example #2
0
		/// <summary>
		/// tweens the RectTransforms anchoredPosition3D property
		/// </summary>
		/// <returns>The kanchored position3 D to.</returns>
		/// <param name="self">Self.</param>
		/// <param name="to">To.</param>
		/// <param name="duration">Duration.</param>
		public static ITween<Vector3> ZKanchoredPosition3DTo( this RectTransform self, Vector3 to, float duration = 0.3f )
		{
			var tweenTarget = new RectTransformTarget( self );
			var tween = ZestKit.cacheVector3Tweens ? QuickCache<Vector3Tween>.pop() : new Vector3Tween();
			tween.initialize( tweenTarget, self.anchoredPosition3D, to, duration );

			return tween;
		}