Unity's DoTween plug-in slow motion animation effect

I haven't used it for a long time, in order to prevent forgetting what type of Ease to use when DoTween set the animation rhythm, so I specially wrote a small demo to record and compare various animation types of DoTween.

Animation execution test code:

 

using DG.Tweening;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Main : MonoBehaviour
{

    //public Dropdown dropDownItem;
    public Text txt_title;
    public GridLayoutGroup gridLayoutGroup;
    public RectTransform rect_item_0;

    List<string> showNames = new List<string>();
    List<int> valueList = new List<int>();

    // Use this for initialization
    void Start()
    {
        rect_item_0.gameObject.SetActive(false);
        txt_title.text = "各种缓动曲线下的位移动画(以持续1s的位移动画为例)";
        int index = 1;
        foreach (var value in Enum.GetValues(typeof(Ease)))
        {
            //从 330 到 -360
            RectTransform rect = GameObject.Instantiate(rect_item_0).GetCom

Guess you like

Origin blog.csdn.net/Stephanie_1/article/details/82953857