TweenInfo

顯示已棄用項目

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡

TweenInfo 數據類型存儲用於 TweenService:Create() 的參數,以指定 tween 的行為。TweenInfo 的屬性在創建後不可寫入。

概要

建構子

屬性

建構子

new

根據提供的參數創建一個新的 TweenInfo

參數

time: number

tween 的持續時間,單位為秒。

預設值:1
easingStyle: Enum.EasingStyle

tween 的緩動樣式。

預設值:Enum.EasingStyle.Quad
easingDirection: Enum.EasingDirection

tween 執行的方向。

預設值:Enum.EasingDirection.Out
repeatCount: number

tween 應該重複的次數。-1 表示無限重複。

預設值:0
reverses: boolean

當 tween 到達目標時,是否應該反向返回到起始值。

預設值:false
delayTime: number

tween 開始之前的延遲時間,單位為秒。

預設值:0

屬性

EasingDirection

tween 執行的方向。

Time

tween 的持續時間,單位為秒。

DelayTime

tween 開始之前的延遲時間,單位為秒。

RepeatCount

tween 重複的次數。-1 表示無限重複。

EasingStyle

tween 執行的樣式。

Reverses

tween 完成後,是否反向插補 tween。