Search Unity

Question Particles being destroyed when they reach the end of flipbook.

Discussion in 'Visual Effect Graph' started by cubrman, Nov 14, 2020.

  1. cubrman

    cubrman

    Joined:
    Jun 18, 2016
    Posts:
    412
    How to prevent this? Why is this considered normal behavior? I just want my particles to play the flipbook animation forever and exist.
     
  2. JulienF_Unity

    JulienF_Unity

    Unity Technologies

    Joined:
    Dec 17, 2015
    Posts:
    326
    Flipbook frame is set via the attribute texIndex. So instead of using a flipbook player, you can use a setTexIndex and connect it to the particle normalized age (age over lifetime) multiplied by the number of frames.
     
  3. cubrman

    cubrman

    Joined:
    Jun 18, 2016
    Posts:
    412
    Works, thanks a lot!

    upload_2020-11-17_20-52-43.png