Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Samples~/VFXOutputEventHandlers/Runtime/VFXOutputEventUnityEvent.cs
2024-08-26 23:07:20 +03:00

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();
}
}
}