創建特效

可播放
伺服器端
可在 Mobile 端和 PC 端使用

建立指定視覺特效,有更多需要設定的屬性時可設定它的實體屬性

聲明

func CreateEffect(out var createdEntity entity<Effect>, target entity<Player>, resource VFXType, loopType LoopType, autoPlay bool)
go

參數

輸入

名稱 類型 描述
目標 Player 目標玩家,只有目標玩家可見
資源 EffectType 特效類型
循環類型 AnimationOverrideLoopType 循環類型
立即播放 Bool 是否立即播放

輸出

名稱 類型 描述
創建的實體 EffectEntity 創建的特效實體