I’m making a card game like Hearthstone or Magic The Gathering. To create the cards in a match, I’d like to spawn an actor with a widget that represents the card face. The widget’s root is a Scale box with an image widget as its only child.
What code do I write to access the image widget?
I have my own custom widget class, but I have no idea how to access the children widgets inside a particular instance.
UCLASS()
class SOULSTONE_API UMyUserWidget : public UUserWidget
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "My User Widget")
FString MyNewWidgetName;
};