📜  ue4绑定函数到按钮单击的c ++代码示例

📅  最后修改于: 2022-03-11 14:44:56.794000             🧑  作者: Mango

代码示例1
// UInventoryWidget::OnCloseButtonClicked is a function that you want to execute when the button is clicked
Button->OnClicked.AddUniqueDynamic(this, &UInventoryWidget::OnCloseButtonClicked);