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

1.7 KiB

Trigger Event Rate

Menu Path : GPU Event > Trigger Event Rate

The Trigger Event Rate Block triggers the creation of particles via a GPU Event using a specified rate. You can set the rate to spawn particles over time (per second) or over distance (parent particle distance change).

Trigger Blocks always execute at the end of the Update Context, regardless of where the Block is situated within the Context.

Block compatibility

This Block is compatible with the following Contexts:

Block settings

Setting Type Description
Mode Enum The method this Block uses to apply the Rate. The options are:
Over Time: Applies the Rate over time.
Over Distance: Applies the Rate over distance.

Block properties

Input Type Description
Rate Float The number of GPU Event particles to spawn based on the Mode.
If you set Mode to Over Time, this is the number of GPU Event particles to spawn per second.
If you set Mode to Over Distance, this is the number of GPU Event particles to spawn as the parent particle moves.
Output Type Description
Evt GPU Event The GPU Event to trigger.