Hello.
I have an array of “props”
and i want game to create buttons for each one of them like this:
and after each button press i want this to be called
Thank you.
Sorry for bad english im not a native speaker.
Hello.
I have an array of “props”
and i want game to create buttons for each one of them like this:
and after each button press i want this to be called
Thank you.
Sorry for bad english im not a native speaker.
You have to create the button in a separate widget : create an Int called Index and make it visible (can be exposed on spawn if you choose to create the button manually). Put as many instances of the button on the main widget. Now get what you need from the button widget (cf picture). You have to Get all the buttons added in the main widget. Using Tick is fine but I would recommend using BP Interface.
Is there a way to automaticly create as many buttons as array lenght?
I forgot, if all the buttons fire the same function, you will be able to call it inside button widget OnClicked, instead of using tick on the main widget.