This version of Unity is unsupported.

VisualEffect.SendEvent

Declaration

public void SendEvent(int eventNameID);

Declaration

public void SendEvent(string eventName);

Declaration

public void SendEvent(int eventNameID, VFX.VFXEventAttribute eventAttribute);

Declaration

public void SendEvent(string eventName, VFX.VFXEventAttribute eventAttribute);

Parameters

eventName The name of the event.
eventNameID The ID of the event. This is the same ID that Shader.PropertyToID returns.
eventAttribute Can be null or a VFXEventAttribute. To create a VFXEventAttribute, use VisualEffect.CreateVFXEventAttribute.

Description

Use this method to send a custom named event.