# Overlap event have been executed

**URL:** <https://forums.unrealengine.com/t/overlap-event-have-been-executed/363715>\
**Category:** XR Development\
**Tags:** SteamVR, overlap, unreal-engine, question, CPP\
**Created:** [July 12, 2016, 1:59am UTC](https://forums.unrealengine.com/t/overlap-event-have-been-executed/363715 "2016-07-12T01:59:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PawnCyan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PawnCyan](https://forums.unrealengine.com/u/PawnCyan)\
**Post date:** [July 12, 2016, 1:59am UTC](https://forums.unrealengine.com/t/overlap-event-have-been-executed/363715/1 "2016-07-12T01:59:34Z")

</div>

hi，guys  
there is bindding overlap event

 ![98109-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/4/a449d5bc31e79cc8ae734612205307f67bd1df46.png)

there is my event functions

 ![98128-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/e/94ed0399845efb6217e0b342bc42eb0d8f69e3fc.png)

][2]

it’s my Pawn Blueprints inherit my C++ class

![98124-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/6/fc681059ee69a81f9e9645c655eb703a42fdc00f.png)

---

<div class="post-metadata">

**Author:** ![PawnCyan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PawnCyan](https://forums.unrealengine.com/u/PawnCyan)\
**Post date:** [July 12, 2016, 2:02am UTC](https://forums.unrealengine.com/t/overlap-event-have-been-executed/363715/2 "2016-07-12T02:02:42Z")

</div>

play in selected viewport

![98135-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/1/93170f98d42a219079f4135ff46f1256b8e3f4cc.png)

play in vr

 ![98136-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/d/c9dc00994480d16a102fae9f87637fd698cca72f.png)

why？？？☹

---

<div class="post-metadata">

**Author:** ![rantrod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rantrod](https://forums.unrealengine.com/u/rantrod)\
**Post date:** [July 13, 2016, 3:47am UTC](https://forums.unrealengine.com/t/overlap-event-have-been-executed/363715/3 "2016-07-13T03:47:07Z")

</div>

Just a few things to check: Are you setting CanAttackBox-\>bGenerateOverlapEvents = true? Are the callbacks OnBoxBeginOverlap and OnBoxEndOverlap UFUNCTIONs? Have you tried RootComponent = CanAttackBox; rather than the AttachTo that you’re using?

---

<div class="post-metadata">

**Author:** ![PawnCyan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PawnCyan](https://forums.unrealengine.com/u/PawnCyan)\
**Post date:** [July 13, 2016, 7:11am UTC](https://forums.unrealengine.com/t/overlap-event-have-been-executed/363715/4 "2016-07-13T07:11:59Z")

</div>

Hi~rantrod ,thanks for you reply! My class AFH\_AIB inherit class Character, so CanattackBox can‘t be RootComponent, I’ve already set it up bGenerateOverlapEvents = true and Begin/EndOverlap event is UFUNCTIONS
