聲明
func CreateAlongPathMotion(targetEntity entity<Entity>, path entity<CustomCurvePath>, style TweenStyle, speed float, tangentFacing bool, out var createdEntity entity<AlongPathMotion>, autoPlay bool)
go
參數
輸入
名稱 | 類型 | 描述 |
---|---|---|
目標 | Entity | 目標實體 |
小路 | CustomCurvePath | 運動路徑 |
風格 | TweenStyle | 插值運動播放的方式,可選單次、迴圈、往復 |
速度 | Float | 速度的大小 |
切線面向 | Bool | 物體是否面向運動方向。即使以其他方式強制修改物體的方向,此屬性仍保持不變。 |
立即播放 | Bool | 建立後自動播放 |
輸出
名稱 | 類型 | 描述 |
---|---|---|
創建的實體 | AlongPathMotion | 用於創建介面實體的名稱。它對應的局部變量是正在創建的介面的實體。 |