For convenience, I want to bind a same function with a parameter to all of the buttons, e.g: a string parameter it can get different buttons name. But it does not work.
Or the click event can’t accept any parameters? Any other way? Or I have to create hounds of events to all the buttons?
Click events can’t take parameters, and there’s no method to provide a payload of any kind with the events. You’d need make a reusable widget that handles the event once and does something different based on variables in the blueprint widget, and just reuse that “button” widget in multiple places. For example, for a spell button I wouldn’t author 100 different widgets, I would make 1 widget that knows how to cast a spell and vary what spell, and the icon information based on the variable data telling the widget what spell to be.