Need to access overlap data in construction script

I have an absolute need to get overlap data during the evaluation of the construction script, yet this appears to not work. I can add nodes such as “Get Overlapping Components” to a construction script, but they will always return an empty overlap result, even if there is in fact an overlap.

This is a very important requirement for my work however, so I need to find a way to implement testing for overlaps in the construction script.

Here is it

I have tried that as well. I have tried, to my knowledge, every node that deals with overlap, but none of them work in the construction script. They all return an empty result even if there is an overlap.

Maybe the problem is all my components are generated dynamically?

StaticMeshComponent and overlap events as well as collision are set to on when they are created.

I tested it and and it’s working without any problem , make sure, your Primitive component is generating overlap events

what’s the type of the generated components?

check if your static mesh has collision

It does. I’ve checked all of the obvious things :slight_smile: I have been fighting with this for over a week now. I have found old posts that indicate that overlap events simply don’t work in the construction script at all, so I am surprised you can get it working.

Here

is my test project , take a look at it

Sorry, your link is invalid, so I can’t try it.

Basically in my construction script I am looping through X times and creating static mesh components. For each one created, I want to see if it overlaps any others created in the loop previously, and if so move it until it doesn’t overlap anymore.

But every check just returns an empty result set, even when overlaps occur.

Ok I have been able to get it working in a simple example like you show above, but not in my more complicated setup. So I need to do some more digging to determine if the bug is mine or Unreal’s.

I got empty array from the overlap component. How can I solve this?