Multiple Anomalies Not Displaying on Detector Simultaneously (Blueprint)

Hi everyone,

I’m a beginner with Unreal Engine, and I’m facing an issue with my anomaly detector system in Blueprint.

Problem:
I have a system where the detector shows the distance and direction to anomalies. It works perfectly when there’s only one anomaly, but when there are multiple anomalies in range, the detector only displays the last one, ignoring the others.

What I’ve done so far:

  • I’m using an array to store all detected anomalies within the detector’s range.
  • I run a ForEachLoop through the array, passing the data (angle and distance) for each anomaly to the widget.
  • However, each time the system updates, it overwrites the previous anomaly data, and only the last anomaly in the array is shown on the detector.

What I need:
I need the detector to show all anomalies simultaneously on the widget, not just the last one. How can I process multiple anomalies from the array so that all of them are displayed at the same time?

Any advice or examples would be greatly appreciated! Thanks in advance!

P.S. I’ve attached my current Blueprint to give a better idea of the issue.



You’re setting the same UI Text element for each item in the array, therefore only the last one will be displayed. Since you are doing this on Tick, the whole array is being processed each frame. You may see in your output log a ton of true falses though showing that the array is being processed.

I didn’t quite understand, could you explain? I also have a problem that the distance is updated only for the last actor, and not all at once.