Script/Transition/TransformExtention.cs
/// <summary>
/// Scale Out along X a Ui Transform
/// </summary>
/// <param name="transform">self transform</param>
/// <param name="duration">scale tween duration</param>
/// <param name="easeType">tween easeType</param>
/// <param name="onCompleteCallback">scale out completion callback</param>
/// <param name="blockRaycast">block raycasts during tweening</param>
/// <returns>returns Tweener that can be used for other purposes.</returns>
Scale Out along X a Ui Transform
Scale Out along X a Ui Transform
public static Tweener ScaleOutX(this Transform transform,
            float duration,
            Ease easeType = Ease.Linear,
            Action onCompleteCallback = null,
            bool deactiveOnComplete = false,
            bool blockRaycast = false)
        {
            var image = InitCanvasGroup(transform, blockRaycast);
            Tweener tween = transform.DOScale(new Vector2(0, 1), duration);
            FillOutTween(transform, easeType, onCompleteCallback, deactiveOnComplete, image, tween);
            return tween;
        }
public static Tweener ScaleOutX ( this Transform transform , float duration , Ease easeType = Ease . Linear , Action onCompleteCallback = null , bool deactiveOnComplete = false , bool blockRaycast = false ) { var image = InitCanvasGroup ( transform , blockRaycast ) ; Tweener tween = transform . DOScale ( new Vector2 ( 0 , 1 ) , duration ) ; FillOutTween ( transform , easeType , onCompleteCallback , deactiveOnComplete , image , tween ) ; return tween ; }
Scale Out along X a Ui Transform
Scale Out along X a Ui Transform
returns Tweener that can be used for other purposes.
returns Tweener that can be used for other purposes .
Transform
this
<not_specific>
duration
float
scale tween duration
scale tween duration
easeType
Ease
None
onCompleteCallback
Action
scale out completion callback
scale out completion callback
deactiveOnComplete
bool
<not_specific>
blockRaycast
bool
block raycasts during tweening
block raycasts during tweening
transform
<not_specific>
None