就是tween在播放动画的时候具有实时效果,完成的时候可以保持当时的位置,修改动画的起点和终点实现相对距离无限移动的效果,而不是一直的重复播放一个动画。
先看结果。对于这种实时效果,动态的改变起点和终点变化最好。


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class test1 : MonoBehaviour
{
// Start is called before the first frame update
Tweener twer;
bool begin;

最低0.47元/天 解锁文章
1652

被折叠的 条评论
为什么被折叠?



