I created a button and marked as a variable
I created a button variable but this button is not passed to it
How do I get this button as a variable?
I created a button and marked as a variable
I created a button variable but this button is not passed to it
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
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.