docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Trigger Event Block reference

    The Trigger Event Block spawns particles using a GPU Event.

    Block compatibility

    You can add the Trigger Event Block to the following Contexts:

    • Initialize
    • Update

    To add a Trigger Event Block to your graph, open the menu for adding a graph element then select GPUEvent > Trigger Event.

    Trigger Blocks always execute at the end of the Update Context, regardless of where you place the Block.

    Block settings

    Property Type Description
    Mode Enum The options are:
    • Always: Spawns particles each frame.
    • Over Time: Spawns particles at a specified rate per second.
    • Over Distance: Spawns a set number of particles over the distance a parent particle moves.
    • On Die: Spawns particles when a parent particle dies.
    • On Collide: Spawns particles when a particle collides with another particle.

    Block properties

    Input Type Description
    Count Uint Sets the number of particles to spawn. This property is available only if you set Mode to Always, On Die, or On Collide.
    Rate Float Sets the rate at which to spawn particles. This property is available only if you set Mode to Over Time or Over Distance. If you set Mode to Over Time, Rate sets the number of particles to spawn per second. If you set Mode to Over Distance, Rate sets the number of particles to spawn over the distance the parent particle moves.

    Block output

    Output Type Description
    Evt GPU Event The GPU Event to trigger.

    Inspector window properties

    Property Type Description
    Clamp To One Bool Limits GPU Events to one per frame. This property is available only if you set Mode to Over Time or Over Distance.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)