forked from BilalY/Rasagar
18 lines
434 B
C#
18 lines
434 B
C#
using UnityEngine.Events;
|
|
|
|
namespace UnityEngine.VFX.Utility
|
|
{
|
|
[ExecuteAlways]
|
|
[RequireComponent(typeof(VisualEffect))]
|
|
class VFXOutputEventUnityEvent : VFXOutputEventAbstractHandler
|
|
{
|
|
public override bool canExecuteInEditor => false;
|
|
|
|
public UnityEvent onEvent;
|
|
public override void OnVFXOutputEvent(VFXEventAttribute eventAttribute)
|
|
{
|
|
onEvent?.Invoke();
|
|
}
|
|
}
|
|
}
|