Search Unity

Question How to spawn one particle system exactly on top of the other?

Discussion in 'General Graphics' started by jacobszlek, Oct 19, 2022.

  1. jacobszlek

    jacobszlek

    Joined:
    Sep 5, 2022
    Posts:
    4
    Hello,
    I'm having troubles with setting my sub-emitter correctly. I want to have a parent object which is a firefly sprite and its child which is a glow sprite. And I want to make fireflies to fly around (which I've already set up), but also to spawn glow behind each firefly and follow their parent. When the emission of the glow is set to 0, it doesn't spawn at all, and when I put some random number, it spawns in different places than the parent. Doesn't matter if the sub-emitter inherits everything or nothing. Also, my sub-emitter doesn't use any sub-components like shape, velocity, etc.

    Thanks in advance
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    I believe you can have 1 system, with 2 materials, if you set the second material via script.
    Just make sure you use material slots 0 and 2, because slot 1 is reserved for particle trails.

    Then you should be able to have the glow in 1 material and the firefly in the other.