Get Callbacks from blueprint into C++(without parent class)?

Hi,
im trying to create some kind of callback from a blueprint to a C++ (it doesnt have a C++ parent class).
While there is no Problems to add callbacks for buttonevents(because they have delegates), it is a big problem for the uuserwidget. I would like to get notified when the Widget loose focus or gets removed from its parent.

Since there are no delegates, im trying to use ProcessEvent to pass an UFunction or delegate param to the blueprint.
But u cant find ufunction or delegates as params, when i create the function in the blueprint.

Any idea how i could handle this ?

You can actually create a delegate parameter for blueprint functions.

  1. Create a Event Dispatcher
  2. Put the Bind Event node within the function
  3. Drag the Event binder to the Exec of the function entry, this should add the new delegate argument to the function
  4. Call this function from the event graph, to make the event delegate actually show up on the function node you might have to add a second argument such as a bool. (you can delete the argument after it refreshes the function args for all nodes)