CreateVFXEventAttribute()
Use this method to create a new VFXEventAttribute.
阅读时间1 分钟最后更新于 16 天前
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
public VFXEventAttribute CreateVFXEventAttribute()
Returns
Type | Description |
|---|---|
| VFXEventAttribute | A new VFXEventAttribute, or null if the VisualEffect doesn't have a VisualEffectAsset assigned. |
Remarks
You can pass a VFXEventAttribute to VisualEffect.SendEvent.