Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Bug - SpawnIndex does not work in "Spawn" Context

Discussion in 'Visual Effect Graph' started by Yggdrazyl, Jul 5, 2023.

  1. Yggdrazyl

    Yggdrazyl

    Joined:
    Jul 12, 2017
    Posts:
    15
    As title says, the node SpawnIndex does not do anything within the Spawn Context. It seems to return zero no matter what.

    Is that intended ?
     
  2. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,108
    Should be, but what number you would expect? Spawn is not called for every particle, I mean there is no concept of index, it's called by whole group, event. Do you mean SpawnCount perhaps?