Exemple #1
0
        public void MoveAnchors(Vector2 anchorMin, Vector2 anchorMax,
                                UIAnimationDirection animationDirection = UIAnimationDirection.From, Action callback = null,
                                UIAnimationOptions animationOptions     = null)
        {
            var anchors = new Vector4(anchorMin.x, anchorMin.y, anchorMax.x, anchorMax.y);

            AnchorsTweener.Tween(anchors, animationDirection, callback, animationOptions);
        }
Exemple #2
0
 public void ResetToSavedPropertiesGraceful(float duration = 0.3f)
 {
     PositionTweener.ResetPropertyGraceful(duration);
     AnchorsTweener.ResetPropertyGraceful(duration);
     RotationTweener.ResetPropertyGraceful(duration);
     SizeTweener.ResetPropertyGraceful(duration);
     ScaleTweener.ResetPropertyGraceful(duration);
     AlphaTweener.ResetPropertyGraceful(duration);
 }
Exemple #3
0
 public void ResetToSavedProperties()
 {
     PositionTweener.ResetProperty();
     AnchorsTweener.ResetProperty();
     RotationTweener.ResetProperty();
     SizeTweener.ResetProperty();
     ScaleTweener.ResetProperty();
     AlphaTweener.ResetProperty();
 }
Exemple #4
0
 public void SaveProperties()
 {
     PositionTweener.SaveProperty();
     AnchorsTweener.SaveProperty();
     RotationTweener.SaveProperty();
     SizeTweener.SaveProperty();
     ScaleTweener.SaveProperty();
     AlphaTweener.SaveProperty();
 }
Exemple #5
0
 public void Stop(bool reset = false)
 {
     PositionTweener.StopTween(reset);
     AnchorsTweener.StopTween(reset);
     RotationTweener.StopTween(reset);
     SizeTweener.StopTween(reset);
     ScaleTweener.StopTween(reset);
     AlphaTweener.StopTween(reset);
 }