meta data for this page
📚 Native/Tween
缓动类可执行某些数值动态过渡,并获取实时最新数值。
注意:Tween
类只在运行时世界场景生效,切换场景则自动销毁。
📒 Static Function
📘 Tween.KillAll()
删除所有正在运行的缓动对象。
function Tween.KillAll( complete: bool = false )
📘 Tween.Kill()
删除指定正在运行的缓动对象。
function Tween.Kill( uuid: string, complete: bool = false )
📘 Tween.NumberTo()
新建一个数值过渡缓动,可获取指定时间从a>b的数值更新结果。
function Tween.NumberTo( start: float, end: float, time: float, onUpdate<float>: Action, onComplete = null ): string //uuid
function test() { Tween.NumberTo(0, 10, 3, (value) => { DLog("[0 > 10] Tween value: " + value); //Update every frame }); }
📘 Tween.TextTo()
新建一个文本过渡缓动,可获取指定时间从a>b的文本更新结果。
function Tween.TextTo( start: string, end: string, time: float, onUpdate<string>: Action, onComplete = null ): string //uuid