How do you configure UProperty data on classes that derive from UUserWidget?
As an example,
UCLASS()
class UUMGBaseWidget : public UUserWidget
{
GENERATED_BODY()
public:
protected:
UPROPERTY(EditDefaultsOnly)
int32 MyProperty;
};
MyProperty doesn’t show up anywhere in the UMG Editor. I’ve tried this with numerous other data types and nothing has worked. The only thing that I have seen that’s worked is binding widgets. TSubclassOf doesn’t work either.
For more context, I need to create 40 instances of a derived UUserWidget programmatically (as I don’t want to drag and drop 40 of them in the UMG editor), so I was hoping to use TSubclassOf<> and other UProperty data to do so.