Version: 2019.1
Experimental: this API is experimental and might be changed or removed in the future.

VFXSpawnerState.spawnCount

Switch to Manual
public float spawnCount ;

Description

The current Spawn count.

The Spawn count is relative to a unique frame. If this custom block is the first one in the stack, the Spawn count is 0.0f.

The Spawn system accumulates the Spawn count. Remaining integer values are consumed by a particles system.

For example, the internal constant Spawn rate is implemented this way:

state.spawnCount += currentRate * state.deltaTime