Search Unity

Particle ID when using GPU events

Discussion in 'Visual Effect Graph' started by DuvE, Jul 16, 2021.

  1. DuvE

    DuvE

    Joined:
    May 22, 2016
    Posts:
    168
    Hi,

    Look like particles ID generated very weirdly when using GPU events. The number goes not from 0, but from some other value (like 30000 or so), I don't know how to debug VFX Graph, but if I plug Modulo(3), the IDs become normal again, sometimes.

    Also, if I use the "Trigger Event Always" node and set the count to 10, these 10 particles will spawn simultaneously. And these 10 particles will have the same ID after plugging them into Modulo(3). So, for example, if I have a PS with 3 particles, each triggering GPU event 10 times, I will get 30 particles, 10 of them will have ID 0, and others 1 and 2. Is this behavior is ok? And I wonder why the ID of GPU Event spawned particles are messed up?

    PS: I'm on HDRP 11

    EDIT: One more question, how to control Strip index (In Initialize Strip Module) if using GPU events? The parameter is disappeared.
     
    Last edited: Jul 17, 2021