OnClick Event Dynamic Button C++
Hi, I'm using the OnClick event that runs when I click my buttons. I am creating 3 bottones from my Blueprint Widget and I call them from my c ++ code with the UPROPERTY method (meta = (BindWidget)). Now what I want to achieve is to call each button from the same method to avoid creating each call event for each button. that is, dynamically. I already know that from my event I would have to use an "if" but I do not know how to get the button that is being called. Here is my code:
Probably the only way is to make a derived class from `UButton` and add a new delegate with additional parameter so you can send the button id/name/something to distinguish different buttons.
answered May 29 '19 at 08:51 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here