# I have some confusion about BlueprintNativeEvent and default implementation.

**URL:** <https://forums.unrealengine.com/t/i-have-some-confusion-about-blueprintnativeevent-and-default-implementation/3462>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [April 29, 2014, 5:24am UTC](https://forums.unrealengine.com/t/i-have-some-confusion-about-blueprintnativeevent-and-default-implementation/3462 "2014-04-29T05:24:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmek](https://forums.unrealengine.com/u/tmek)\
**Post date:** [April 29, 2014, 5:24am UTC](https://forums.unrealengine.com/t/i-have-some-confusion-about-blueprintnativeevent-and-default-implementation/3462/1 "2014-04-29T05:24:51Z")

</div>

I followed the three class creation tutorials (blueprint, code and code+blueprint). In the third tutorial ([here](https://docs.unrealengine.com/latest/INT/Programming/Basics/ClassCreation/CodeAndBlueprints/index.html)) it walks you through setting up a BlueprintNativeEvent.

The documentation says:

\*there is a native default implementation of the function that is called if the Blueprint does not override the function. This is useful for things where you want some sort of default behaviour if the Blueprint does not implement it, but want the Blueprint to be able to override the functionality if desired. These are more costly, so we only put them in where the functionality is needed. When you override the BlueprintNativeEvent, you can still call the native implementation, if desired, by right clicking on the event or function entry node, and selecting “Add call to parent”.  
\*

In my case however when I overlap the sphere the blueprint implementation is called (the light changes to a random color) AND the native implementation is called (the light goes out). I only see the light (and it’s new random color) when overlap end fires and the native implemention toggles the light on.

As the docs say its supposed to be optional that the naitive implemenation is called by right clicking on the event in the event graph and selecting “Add call to parent”. However that menu item is disabled.

**TLDR; Seems like, in this example at least, the naitive implementation is always being called for a BlueprintNativeEvent even when overridden in a blueprint despite the documentation saying otherwise.**

---

<div class="post-metadata">

**Author:** ![Byooler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Byooler](https://forums.unrealengine.com/u/Byooler)\
**Post date:** [April 29, 2014, 6:09pm UTC](https://forums.unrealengine.com/t/i-have-some-confusion-about-blueprintnativeevent-and-default-implementation/3462/2 "2014-04-29T18:09:14Z")

</div>

I’m not aware of any issues with the BlueprintNativeEvent call chain – can you give more details on your situation? Are you overriding the MyEvent\_Implementation() function or the base MyEvent() function in native code?

---

<div class="post-metadata">

**Author:** ![tmek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmek](https://forums.unrealengine.com/u/tmek)\
**Post date:** [April 29, 2014, 7:51pm UTC](https://forums.unrealengine.com/t/i-have-some-confusion-about-blueprintnativeevent-and-default-implementation/3462/3 "2014-04-29T19:51:27Z")

</div>

I double checked that I had followed the tutorial correctly and think I found the issue.

It looks like the text is correct but the corresponding LightSwitchBoth\_BP blueprint illustration is wrong in the documentation.  
at [https://docs.unrealengine.com/latest/INT/Programming/Basics/ClassCreation/CodeAndBlueprints/index.html](https://docs.unrealengine.com/latest/INT/Programming/Basics/ClassCreation/CodeAndBlueprints/index.html)

The text says:

> [@](#):
>
> The OnOverlap event node is connected to a Set Light Color node. Whenever the event executes, it will cause the light color of the PointLightComponent to be set to a random color. This overrides the OnOverlap\_Implementation function in the source file, which toggles the visibility of the PointLightComponent.

The blueprint illustration shows sphere1’s OnComponentBeginOverlap being used event instead of LightSwitchBoth OnOverlap:

 ![Both_EventGraph.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/4/f438ab5b2c102d300496c52dc80037e74f6ebafb.jpeg)

So it should look like this I think:

 ![Ja175p0.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/8/18aaa7045509c0681fc46b407463223fd1d028fe.png)

---

<div class="post-metadata">

**Author:** ![Byooler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Byooler](https://forums.unrealengine.com/u/Byooler)\
**Post date:** [April 29, 2014, 8:44pm UTC](https://forums.unrealengine.com/t/i-have-some-confusion-about-blueprintnativeevent-and-default-implementation/3462/4 "2014-04-29T20:44:22Z")

</div>

Yep, I think you are correct, good catch! I’ll pass this onto the docs team to get that fixed up. Sorry for the confusion.
