For loop only loop once

Pure functions (like GetOverlappingActors) will get executed for every pin connected to them, and under the hood, the for loop will get expanded, effectively calling the connected function on every loop, which will not give you the result that you want

Save the result of GetOverlappingActors to a temporary variable, and loop on that variable instead

2 Likes