Unity - Scripting API: VFX.VisualEffectAsset.GetEvents
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public void GetEvents(List<string> names);
Parameters
| Parameter | Description |
|---|---|
| names | The List that this function populates with the event system names. |
Description
Gets the name of every Event connected to a system.
To increase the speed of the retrieval process, preallocate the names input list.
Additional resources: VisualEffect.SendEvent.
This example logs all available events in the attached VisualEffectAsset.