如何在 FlowEnt 中开始补间

How to start a tween in FlowEnt

我正在使用 FlowEnt 库并创建了一个补间但它没有启动 这是代码

transform.Tween(3f).MoveTo(destination);

FlowEnt 中的动画不会自动启动。该库有 2 个选项: 自动启动和真正启动。根据他们的网站,True-Start 速度更快,但实施 Auto-Start 是为了让人们熟悉访问方式。 True-Start 还提供了一个异步选项。更多信息 here.

关于如何修复动画,可以使用下面的方法

真正开始

transform.Tween(3f).MoveTo(destination).Start();

真正开始 但异步

await transform.Tween(3f).MoveTo(destination).StartAsync();

自动启动

transform.Tween(3f, true).MoveTo(destination);