Overlap two objects

Hi everyone,

I’m working on a project in Unreal Engine where I have a single actor that contains two components (Component1 and Component2) and two collision boxes (Box1 and Box2). I need to detect overlaps such that:

  • If only one component is overlapping with its respective box, nothing should happen.
  • If Component1 is overlapping with Box1 and Component2 is overlapping with Box2 at the same time, then I want to print a text messag

After OnBeginOverlap any box, use GetOverlappingComponents → ContainsItem from both boxes.

Could you please elaborate?


I tried this and it didn’t work?

Try this
So it will only Print String if both are set to true

If your Overlapp Event is being called multiple times you can try adding a Do Once

1 Like

It looks like this:

1 Like

This worked. Thank you!