天天看点

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); }​

public AnimationCurve Curve;

    private void Start()
    {
        
        this.transform.DOMove(Vector3.one*2, 2f).SetEase(Curve);

    }