0
点赞
收藏
分享

微信扫一扫

07.运动曲线


​​运动类型​​​ Dotween Ease效果演示地址
​​​ http://robertpenner.com/easing/easing_demo.html​​

01.​​private void Start() { //Ease.InOutBack 运动类型 //震幅 在起始点和目标点之间循环几次 // this.transform.DOMove(Vector3.one*4, 2f).SetEase(Ease.Linear,6,8); }​

02AnimationCurve

public AnimationCurve Curve;

private void Start()
{

this.transform.DOMove(Vector3.one*2, 2f).SetEase(Curve);

}

03.自定义函数设置运动曲线


举报

相关推荐

0 条评论