# NotifyActorBeginOverlap vs OnComponentBeginOverlap

**URL:** <https://forums.unrealengine.com/t/notifyactorbeginoverlap-vs-oncomponentbeginoverlap/132604>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [October 25, 2019, 2:10pm UTC](https://forums.unrealengine.com/t/notifyactorbeginoverlap-vs-oncomponentbeginoverlap/132604 "2019-10-25T14:10:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SausagesSizzling](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SausagesSizzling](https://forums.unrealengine.com/u/SausagesSizzling)\
**Post date:** [October 25, 2019, 2:10pm UTC](https://forums.unrealengine.com/t/notifyactorbeginoverlap-vs-oncomponentbeginoverlap/132604/1 "2019-10-25T14:10:52Z")

</div>

I am wondering when it is best to use one over the other? Most of the examples I find for OnComponentBeginOverlap (including the example on the official documentation) seem like they could have used NotifyActorBeginOverlap instead. Is there a reason to use OnComponentBeginOverlap if you don’t care about which components overlapped?

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [October 25, 2019, 3:07pm UTC](https://forums.unrealengine.com/t/notifyactorbeginoverlap-vs-oncomponentbeginoverlap/132604/2 "2019-10-25T15:07:54Z")

</div>

NotifyActorBeginOverlap is a function. Only when inheriting from Actor you can do something.

OnComponentBeginOverlap is a dispatcher anyone can bind to, and you get other informations in case of an overlap.

So it depends what you do. If you are writing an Actor and don’t care what component triggered the overlap, use NotifyActorBeginOverlap.
