Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Particle System -- Sub Emitters -- Don't work

Discussion in 'General Graphics' started by KarlKarl2000, Aug 8, 2020.

  1. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    609
    Last edited: Aug 8, 2020
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,296
    The docs could do with a bit more detail here. They only support one emission event when the death event happens. Setting a time larger than 0, or using multiple bursts, doesn’t work.
     
    karl_jones likes this.
  3. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    609
    Hi Richard,
    Thanks for the response. Is there a reason we can't have sub emitters per particle? :oops:
     
  4. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,296
    Sorry perhaps i was unclear, or perhaps I’m misunderstanding your question.. We do support having sub emitters react to an event for each particle.

    The limitation is that Death and Collision events only support 1 burst at time 0 (there can be no delays or anything after the event, because the event is only known at the instant the particle dies/collides.)
     
  5. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    609
    Hi Richard,

    Thanks so much for the explanation. I think I understand what you mean.

    In the animated GIF above, we can see 2 grey rectangles get emitted, but only 1 grey rectangle plays the "circle" sub emitter.

    Is there anything in my setting that is delaying any particle events?

    Thanks again for your help!
     
  6. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,296
    The burst count on the subemitter is set to 30. I’d set that to 1, if im understandig what you want correctly :)
     
  7. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    609
    I tried 25 particles with a burst count of 1 ... no luck. There's still just 1 yellow circle that is sub emitted. I was hoping for 25 yellow circles.

    I guess this isn't possible to achieve.

    Thanks anyways.
    ezgif-4-57f58d870ee1.gif
    screenshot.1.jpg
     
  8. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,296
    Can you export a .unitypackage with the problematic effect, and upload it here?
     
  9. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    609
  10. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,296
    In the Sub-Emitter (1), two settings are incorrect:

    1. Max Particles is set to 1. This means there may only be 1 red particle alive at any one time. Change it to 10.
    2. Each Death event is trying to spawn 30 particles, because in the Emission Module, the burst count is set to 30. (But it can't, because Max Particles caps the limit less than 30. If you want 1 red particle for each particle that dies in the parent system, set the Burst Count to 1.

    After doing both of these things, I think I'm seeing the behaviour you want.

    Good luck! :)
     
  11. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    609
    Thanks so much for your help!!!
     
    richardkettlewell likes this.