Script/Transition/TransformExtention.cs
/// <summary>
/// Scale Out along Y 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 Y a Ui Transform
Scale Out along Y a Ui Transform
public static Tweener ScaleOutY(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(1, 0), duration);
            FillOutTween(transform, easeType, onCompleteCallback, deactiveOnComplete, image, tween);
            return tween;
        }
public static Tweener ScaleOutY ( 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 ( 1 , 0 ) , duration ) ; FillOutTween ( transform , easeType , onCompleteCallback , deactiveOnComplete , image , tween ) ; return tween ; }
Scale Out along Y a Ui Transform
Scale Out along Y a Ui Transform
returns Tweener that can be used for other purposes.
returns Tweener that can be used for other purposes .
Transform
this
duration
float
scale tween duration
scale tween duration
easeType
Ease
None
onCompleteCallback
Action
scale out completion callback
scale out completion callback
deactiveOnComplete
bool
blockRaycast
bool
block raycasts during tweening
block raycasts during tweening
transform
None