导出:
//DoTween typeof(DG.Tweening.AutoPlay), typeof(DG.Tweening.AxisConstraint), typeof(DG.Tweening.Ease), typeof(DG.Tweening.LogBehaviour), typeof(DG.Tweening.LoopType), typeof(DG.Tweening.PathMode), typeof(DG.Tweening.PathType), typeof(DG.Tweening.RotateMode), typeof(DG.Tweening.ScrambleMode), typeof(DG.Tweening.TweenType), typeof(DG.Tweening.UpdateType), typeof(DG.Tweening.DOTween), typeof(DG.Tweening.DOVirtual), typeof(DG.Tweening.EaseFactory), typeof(DG.Tweening.Tweener), typeof(DG.Tweening.Tween), typeof(DG.Tweening.Sequence), typeof(DG.Tweening.TweenParams), typeof(DG.Tweening.Core.ABSSequentiable), typeof(DG.Tweening.Core.TweenerCore<Vector3, Vector3, DG.Tweening.Plugins.Options.VectorOptions>), typeof(DG.Tweening.TweenCallback), typeof(DG.Tweening.TweenExtensions), typeof(DG.Tweening.TweenSettingsExtensions), typeof(DG.Tweening.ShortcutExtensions), typeof(DG.Tweening.DOTweenModuleUI), //dotween pro 的功能 typeof(DG.Tweening.DOTweenPath), typeof(DG.Tweening.DOTweenVisualManager),
使用:
--基本使用 rectTransform:DOAnchorPos(Vector2.New(end_pos_x, end_pos_y), 0.3) transform:DOLocalMove(Vector3.New(x,y,0),0.15) transform:DOLocalRotate(Vector3.New(0,0,0), time) unity_uiimage:DOFade(0.8, 1) --移除 transform:DOKill() --设置缓动 rectTransform:DOAnchorPos(Vector2(0,0), 1):SetEase(CS.DG.Tweening.Ease.OutBack) --设置完成回调 rectTransform:DOAnchorPos(Vector2(0,0), 1):OnComplete(function () end) --队列queue local queue = CS.DG.Tweening.DOTween.Sequence() queue:Append(rectTransform:DOAnchorPos(Vector2(0,0), 1)) queue:AppendCallback(function() end) queue:AppendInterval(2) queue:Kill()