How get button as variable?

I created a button and marked as a variable
image

I created a button variable but this button is not passed to it
image


How do I get this button as a variable?

Hello,
I think what you’re looking for is meta specifier BindWidget, would look like this:

UPROPERTY(BlueprintReadWrite, meta=(BindWidget))
UButton* Knopka = nullptr;

And just a friendly reminder unless you know what you’re doing always use UPROPERTY macro when declaring pointers.

NOTE: Not sure if you need the BlueprintReadWrite, but shouldn’t do you harm :smiley:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.