hi,
how can i call the onclick event of a button from c++?
thanks in advance,
hi,
how can i call the onclick event of a button from c++?
thanks in advance,
Just like this:
check(TheButtonPtr); // TheButtonPtr is an `UButton` object
TheButtonPtr->OnClicked.Broadcast();
Notice: This way just broadcasts the click event to all receivers that bind this button’s event. It is different with SButton::OnMouseButtonDown
.
hello, sorry to bother you but i’m new to c ++ how can i create a function in c ++ that will get a button element from blueprint and then call onclicked event?
thanks in advance,