public void MoveDemo() { Debug.Log("origin.anchoredPosition: " + (UIAnimator.GetCenter(origin))); Debug.Log("target.anchoredPosition: " + (UIAnimator.GetCenter(target))); // UIAnimator.Move(moveDemo, UIAnimator.GetAnchorCenter(origin), UIAnimator.GetAnchorCenter(target), 1f); UIAnimator.Move(moveDemo, UIAnimator.GetCenter(origin), UIAnimator.GetCenter(target), 1f).Play(); }
public void MoveOffsetDemo() { UIAnimator.MoveOffset(moveDemo, UIAnimator.GetCenter(target) - UIAnimator.GetCenter(origin), 1f).Play(); }
public void MoveVerticalToDemo() { UIAnimator.MoveVerticalTo(moveDemo, UIAnimator.GetCenter(target).y, 1f).Play(); }
public void MoveHorizontalToDemo() { UIAnimator.MoveHorizontalTo(moveDemo, UIAnimator.GetCenter(target).x, 1f).Play(); }
public void MoveToDemo() { UIAnimator.MoveTo(moveDemo, UIAnimator.GetCenter(target), 1f).Play(); }
public void MoveDemo() { // UIAnimator.Move(moveDemo, UIAnimator.GetAnchorCenter(origin), UIAnimator.GetAnchorCenter(target), 1f); UIAnimator.Move(moveDemo, UIAnimator.GetCenter(origin), UIAnimator.GetCenter(target), 1f).Play(); }