# In UE5,how the c++ code use blueprint's function

**URL:** <https://forums.unrealengine.com/t/in-ue5-how-the-c-code-use-blueprints-function/533242>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, CPP, Blueprint\
**Created:** [April 19, 2022, 8:43am UTC](https://forums.unrealengine.com/t/in-ue5-how-the-c-code-use-blueprints-function/533242 "2022-04-19T08:43:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Origin\_plan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Origin\_plan](https://forums.unrealengine.com/u/Origin_plan)\
**Post date:** [April 19, 2022, 8:43am UTC](https://forums.unrealengine.com/t/in-ue5-how-the-c-code-use-blueprints-function/533242/1 "2022-04-19T08:43:53Z")

</div>

Hi everyone,how the c++ code use blueprint’s function

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [April 19, 2022, 8:48am UTC](https://forums.unrealengine.com/t/in-ue5-how-the-c-code-use-blueprints-function/533242/2 "2022-04-19T08:48:35Z")

</div>

Can you elaborate? It’s a bit unclear what you mean.  
[Properties | Unreal Engine Documentation](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/GameplayArchitecture/Properties/)  
See properties associated with Blueprints. They explain quite a lot.

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [April 19, 2022, 8:56am UTC](https://forums.unrealengine.com/t/in-ue5-how-the-c-code-use-blueprints-function/533242/3 "2022-04-19T08:56:38Z")

</div>

> [@Call Blueprint functions from C++](https://forums.unrealengine.com/t/call-blueprint-functions-from-c/296119/10):
>
> Ok, got this working so here is an example… I want to call a blueprint function from C++. So first I make a blueprint function called CallFunctionTest. (In our game, and we call a player a “Survivor”.) It just prints “Survivor Call Function Test” in pink on the console. Then I have a static blueprint set of functions like this… The header file is #include "Kismet/BlueprintFunctionLibrary.h" #include "TDLSurvivorFastCache.generated.h" /\*\* \* \*/ UCLASS() class TDL\_API UTDLSurvivorFastCa…

---

<div class="post-metadata">

**Author:** ![Origin\_plan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Origin\_plan](https://forums.unrealengine.com/u/Origin_plan)\
**Post date:** [April 19, 2022, 9:25am UTC](https://forums.unrealengine.com/t/in-ue5-how-the-c-code-use-blueprints-function/533242/4 "2022-04-19T09:25:35Z")

</div>

In UE4,I can do it according to the following operations:  
1:In c++ head file，add this code "UFUNCTION(BlueprintImplementableEvent) void Func(); "  
2: In UE editor, click “Compile” button.  
3: In blueprint “My Blueprint -\>Functions” can find “overridable” ,then choose “Func” .  
But In UE5,I couldn’t find the “compile” button.Any modification in the C + + file does not take effect.

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [April 19, 2022, 9:39am UTC](https://forums.unrealengine.com/t/in-ue5-how-the-c-code-use-blueprints-function/533242/5 "2022-04-19T09:39:28Z")

</div>

The compile button is bottom right and looks like this:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/d/89dfbe02370ba7b43c390182ecc376a3836f0c04.png)  
It took me a while to find it too =)  
P.S. It’s only there in the level window, not in blueprints.

---

<div class="post-metadata">

**Author:** ![Origin\_plan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Origin\_plan](https://forums.unrealengine.com/u/Origin_plan)\
**Post date:** [April 19, 2022, 9:56am UTC](https://forums.unrealengine.com/t/in-ue5-how-the-c-code-use-blueprints-function/533242/6 "2022-04-19T09:56:23Z")

</div>

Thanks.[astonish.jpg]
