聲明
func PlayAnimation(target entity<AnimationControllerAttachable>, state string, playSpeed float, loopType LoopType)
go
參數
輸入
名稱 | 類型 | 描述 |
---|---|---|
目標 | AnimationControllerAble | 播放動畫的可掛載動畫控制器的實體元件 |
動畫狀態 | String | 動畫控制器的指定狀態 |
播放速度 | Float | 動畫播放速度縮放 |
循環類型 | AnimationOverrideLoopType | 循環類型,可以保持動畫原邏輯、只播放一次或循環播放 |