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?

This is my EndOverlapFunction and works fine on my project.

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

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



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.

Thanks, it helps a lot.

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