In my Character class I have a Property for a crosshair widget:
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly) TSubclassOf<UUserWidget> CrosshairWidget;
On BeginPlay() I create the widget and store the reference:
CrosshairInstance = CreateWidget<UUserWidget>(GetWorld(), CrosshairWidget); if (CrosshairInstance) CrosshairInstance->AddToViewport();
Now, my question is how can I downcast from the UUserWidget instance to my derived class so I can access properties within it?
By the way, I would have just created the widget property as my derived class if I could have found a way to access the type, but it appears I can only access a base blueprint class from C++.