Passing a variable to a function bound to a OnClicked event

Hello everyone. I want to pass the item mesh stored in Item Object to the UpdateRecordingItem function. I thought of making a create event node but I don’t think it allows input. Any help / suggestions will be much appreciated, thanks in advance


if im understanding you correctly

you can create your own button widget (use a border and override OnMousebuttonDown)

the create your own event dispatcher with whatever inputs/signature you like

1 Like

Inside the widget:

• add an even dispatcher with the desired data signature
• have the button’s onClick call the dispatcher and pipe in data
• when the widget gets created (as in the image above), instead of binding to the native button’s onClick, bind it to the newly created dispatcher in the 1st bullet point