2021-09-09 20:42:29 -04:00

20 lines
1.1 KiB
Markdown

<div style="border: solid 1px #999; border-radius:12px; background-color:#EEE; padding: 8px; padding-left:14px; color: #555; font-size:14px;"><b>Draft:</b> The content on this page is complete, but it has not been reviewed yet.</div>
<div style="border: solid 1px #999; border-radius:12px; background-color:#EEE; padding: 8px; padding-left:14px; color: #555; font-size:14px;"><b>Experimental:</b> This feature is currently experimental and is subject to change in later major versions. To use this feature, enable <b>Experimental Operators/Blocks</b> in the <b>Visual Effects</b> tab of your Project's Preferences.</div>
# Spawner Callbacks
Spawner Callbacks is a C# API that enables defining custom runtime behavior and create new Blocks for use in Spawn Contexts.
<u>Spawner Callbacks enable you do the following:</u>
* Control the Spawn Context state (Playing, Stopped, Delayed)
* Read/Write the Output Spawn Count
* Read/Write SpawnEvent Attributes
## Writing Spawner Callbacks
The full reference of the API is available [here](https://docs.unity3d.com/2019.3/Documentation/ScriptReference/VFX.VFXSpawnerCallbacks.html).