Programmatic Widget creation and Onclick binding

This is how I’d actually do it:

  • in the player:

image

  • in the custom button:

  • when you create buttons:

Clicking a button fires a custom event in the player BP, delivering the mesh the button obtained from the struct array.


This is how I’d actually do it:

But I’d use soft references instead. Unless the scope is really small.

1 Like