How can I get a factor value for a button event?

UFUNCTION()
	void OnClickButtonEvnet(int32 index);

button1->OnClicked.AddDynamic(this,&UInventoryWidget::OnClickButtonEvnet(1));

I’d like to get the index as a button event like the code above.

This topic has been moved from International to Programming & Scripting: C++.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this new category will help you to get an answer.

In the meantime, good luck and happy developing! :slight_smile: