Ribbon renderer connects wrong particles when reactivating emitter

When reactivating emitter, ribbon is created between old and new particles. But it works fine when active

Preview of particles

Emiter

Blueprint: I toggle whole system.

I had a similar problem in a different context (Seperate drift skid marks were linking, try see if this works:

On Particle Spawn, add the module (Set new or existing parameter directly)

Set the parameter to RibbonID.

Now, on the User Parameters tab, click the add button and choose int32 and create a variable (In my case I name it Drift ID yours should probably be something like Laser ID)

On the dropdown, select Make Niagara IDFrom Int.

Now, set the Index to your user parameter.

In your blueprint that you are using to activate and deactivate the Niagara System, create an integer variable.

image

Now every time you need to deactivate the ribbon, Increment that variable every time, then set the Parameter from your blueprint to the incremented variable.

Not quite sure why I couldn’t do this directly in the Niagara System, but this works for me.

Hope this helped.