OnComponentBeginOverlap not working

Hello. I’m new to unreal engine. I’m following this tutorial, and unfortunately, I have problems while following this tutorial. My OnComponentBeginOverlap does not works. It should print “Trigger Box Triggered” when the player actor overlaps it. But it does not work.

Move the binding of the delegate on line 9 into BeginPlay(). Should work then.

1 Like

You need to enable overlap on the triggerbox
in cdo:

TriggerBox->SetCollisionProfileName(TEXT(“OverlapAll”));
TriggerBox->SetGenerateOverlapEvents(true);

No need to move binding to beginplay

1 Like

It worked! Thank you. Saves a lot of time finding new solutions!!!