# Niagara BeamEmitterSetup script BeamID flick between -1 and LoopCount. 

**URL:** <https://forums.unrealengine.com/t/niagara-beamemittersetup-script-beamid-flick-between-1-and-loopcount/2711472>\
**Category:** Rendering\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [March 4, 2026, 10:51am UTC](https://forums.unrealengine.com/t/niagara-beamemittersetup-script-beamid-flick-between-1-and-loopcount/2711472 "2026-03-04T10:51:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 4, 2026, 10:51am UTC](https://forums.unrealengine.com/t/niagara-beamemittersetup-script-beamid-flick-between-1-and-loopcount/2711472/1 "2026-03-04T10:51:54Z")

</div>

When using ribbon renderer in Niagara, I found BeamID is -1 in some frame, which make the ribbon effect broke.

 ![image.png.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/3/2931cb40cb614b6e42b1b8637713aabb72ed2bab.png)

If change BeamID to keep same value when compare failed, the effect correct, is it right?

 ![image.png.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/4/c846c7b76970154eca1b6e1b74cf0e726a6ad668.png)

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 6, 2026, 4:32am UTC](https://forums.unrealengine.com/t/niagara-beamemittersetup-script-beamid-flick-between-1-and-loopcount/2711472/2 "2026-03-06T04:32:41Z")

</div>

Hi huafu hong,

Thank you for bringing this issue to our attention. I was able to repro an odd behavior of the resulting effect in UE 5.3 - 5.7 and source versions with the following steps:

1. Create a new Niagara System/Emitter based on the “Static Beam” emitter
2. On the “Particle Spawn” Stage:
  1. Delete the “Beam Width” Module

3. On the “Emitter Update” Stage:
  1. On the “Emitter State” Module, set “Loop Duration” to 0.5
  2. On the “Beam Emitter Setup” Module, set “Beam End” to “Random Vector” with (Vector Scale = 100, Recalculate Random Each Loop = true)
  3. On the “Spawn Burst Instantaneous” Module, set “Spawn Time” to multiples of a frame: 1/60, 2/60, 3/60, 4/60... The result is correct for an even number of frames, but incorrect for an odd number of frames

Your proposed fix seems appropriate, although I believe some extra testing must be made with different combinations of emitter lifetime “Loop Behavior” and “Loop Duration”, which can affect the evolution of LoopCount. I have filed an internal bug report about this so that the engine devs can take a closer look. Here’s the tracking number: [UE-368844](https://issues.unrealengine.com/issue/UE-368844) (the link should become accessible once the devs mark it as public).

Let me know if there is anything else I can help you with.

Best regards,

Vitor
