# How to pass parameters to a Blueprint function called from C++?

**URL:** <https://forums.unrealengine.com/t/how-to-pass-parameters-to-a-blueprint-function-called-from-c/483601>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 19, 2021, 5:31am UTC](https://forums.unrealengine.com/t/how-to-pass-parameters-to-a-blueprint-function-called-from-c/483601 "2021-05-19T05:31:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [May 19, 2021, 5:31am UTC](https://forums.unrealengine.com/t/how-to-pass-parameters-to-a-blueprint-function-called-from-c/483601/1 "2021-05-19T05:31:34Z")

</div>

I’ve just started to learn Unreal Engine.

I have created HUD using UMG and now I want to access a function that I have defined on it using C++. The code to get the function is:

```
 UFUnction* Func = Obj->GetClass()->FindFunction(FName("FuncName"));
 if(Func == nullptr){return;}
 
 FStructOnScope FuncParam(Func);
 UProperty* ReturnProp = nullptr;
 
 for (TFieldIterator<UProperty> It(Func); It; ++It)
    {
     UProperty* Prop = *It;
     if (Prop->HasAnyPropertyFlags(CPF_ReturnParm))
     {
         ReturnProp = Prop;
     }
     else
     {
         //FillParam here            
     }
 }
 
 Obj->ProcessEvent(Func, FuncParam.GetStructMemory());

```

But… I don’t know how to `//Fillparam here`.

How can I fill the `FuncParam` with the parameters that I need to pass?
