Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Documentation~/Block-SetSpawnTime.md
2024-08-26 23:07:20 +03:00

957 B
Raw Blame History

Set Spawn Time

Menu Path: Spawn > Custom > Set Spawn Time

The Set Spawn Time Block allows following Initialize Contexts to use the time since the spawn Contexts last play event (see totalTime).

img

In this example, the left system uses source spawnTime, which resets for each start event of the previous spawn Context. The right system uses VFX total time which is simply the accumulation of deltaTime since Visual Effect component activation.

Block compatibility

This Block is compatible with the following Contexts:

Remarks

This Block uses a VFXSpawnerCallback interface and you can use it as a reference to create your own implementation. The implementation for this Block is in com.unity.visualeffectgraph > Runtime > CustomSpawners > SetSpawnTime.cs.