Widget button instances

Hi everyone!
I want to put a bunch of button instances in a widget and make them fire different things inside that widget. So I made a button widget preset and put it into my actual widget.
So what a surprise , that button instances don’t have “on press” functionality while they are in another widget.
Do I miss or misconception something? How do I make them serve the purpose ?

You’ll need to add your own On Press functionality in your button widget preset using Event Dispatchers.

Create an Event Dispatcher called something like OnPressed in you Button Preset widget.

image

then on the OnPressed event of the button itself, call the OnPressed Event Dispatcher.

image

Now the OnPressed Event Dispatcher will show up on your button instance and you can add it to the graph.

image

image

2 Likes

Thank you so much, Extrone!
Event dispatcher approach works super good!

1 Like