# How to call native functions from widgetBP?

**URL:** <https://forums.unrealengine.com/t/how-to-call-native-functions-from-widgetbp/10148>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 26, 2014, 12:55am UTC](https://forums.unrealengine.com/t/how-to-call-native-functions-from-widgetbp/10148 "2014-08-26T00:55:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4bd0927](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4bd0927](https://forums.unrealengine.com/u/anonymous_user_d4bd0927)\
**Post date:** [August 26, 2014, 12:55am UTC](https://forums.unrealengine.com/t/how-to-call-native-functions-from-widgetbp/10148/1 "2014-08-26T00:55:12Z")

</div>

There are so many replies in document preview thread, so i start a new one.  
I want to call native functions defined in c++ from Widget Blueprint. I tried to add some variable which was defined in c++ in widgetBp, but it can’t be loaded when restart UED!

---

<div class="post-metadata">

**Author:** ![PenguinTD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PenguinTD](https://forums.unrealengine.com/u/PenguinTD)\
**Post date:** [August 26, 2014, 4:15am UTC](https://forums.unrealengine.com/t/how-to-call-native-functions-from-widgetbp/10148/2 "2014-08-26T04:15:29Z")

</div>

I think this is the wrong forum as the solution lies in macro you need to call before define your c++ functions.  
It’s the same for variables as well.

Watch closely to those native classes, how they call a macro before declare actual function in the class construct, that’s how you should do yours as well.

here are some links

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4bd0927](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4bd0927](https://forums.unrealengine.com/u/anonymous_user_d4bd0927)\
**Post date:** [August 26, 2014, 4:46am UTC](https://forums.unrealengine.com/t/how-to-call-native-functions-from-widgetbp/10148/3 "2014-08-26T04:46:35Z")

</div>

Thanks for your reply!
