问题标签 [leantween]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
120 浏览

c# - LeanTween 在具有相同时间参数的相同元素上以不同时间结束

我使用 LeanTween 为 UI 设置动画,显示动画效果很好,但隐藏动画慢了 3 倍……知道是什么原因造成的吗?

我的动画时间是 1.5F,menuStartBtn 是 RectTransform

0 投票
1 回答
939 浏览

c# - 如何跟踪精益补间功能?

我想知道完成动画剩下的时间,因为我正在使用统一资产 Lean Tween 来缩小我的时间栏,所以当剩下 5 秒直到时间用完时,我想播放关闭时间的声音。我能够知道动画什么时候结束 LeanTween.scaleX(timebar.gameObject, 1f, time).setOnComplete(this.Gameover) ,但我怎么能有时间完成呢?我查看了文档,但没有发现任何有用的东西。