How to create OnComponentEndOverlap in C++

I am trying to declare an OnComponentEndOverlap event, however I get an error. My OnComponentBeginOverlap works just fine. Do I have to declare the on end overlap differently?

1 Like

This is my EndOverlapFunction and works fine on my project.

UFUNCTION()
	void OnOverlapEnd(UPrimitiveComponent* OverlappedComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);

Don’t forget to use the UFUNCTION() macro.

Cheers!

2 Likes

That took care of it. I had too many arguments in the declaration. Thank you!

Thank you!! I don’t think I’ll ever understand why Epic removed all the example code from the docs, smh.

1 Like

Thanks, it helps a lot.

Thank you! That also helped me figure out the OnComponentEndOverlap binding function.