Search Unity

Question How to pass current particle position to GPU event system on death

Discussion in 'Visual Effect Graph' started by keromonkey, Dec 15, 2022.

  1. keromonkey

    keromonkey

    Joined:
    Jan 16, 2019
    Posts:
    42
    It doesn't quite make sense why there isn't an "inherent current position" for GPUEvent-fired graphs.

    I want to trigger a GPU event, and pass the current particle's local position to it
     
    Last edited: Dec 15, 2022
  2. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,314
    What do you mean? there is inherit position. For example check this - not the most recent vfx graph version, but it still works the same way.
     
  3. keromonkey

    keromonkey

    Joined:
    Jan 16, 2019
    Posts:
    42
    Ah, I see. It doesn't work if you create and set position over life in output node, rather than initialize/update. o_O
    Thank you :)