As the title says, I’ve got a button that I can click and a function is called - however, the OnClicked declaration shows a delegate to be passed with FReply as return value and no parameters.
Now it’s absolutely essential that I can pass along a parameter to that delegate since I’m dynamically adding buttons while iterating through an array, and I need to pass a reference to the object in the array that the button represents so I can figure out which action to take.
You’re able to bind variables to a delegate; I can’t remember the exact syntax when doing this inside Slate (nor the names of the delegate), but it would be something along the lines of: