天天看點

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

    }