Hey guys,
I'm trying to create my subclass of UUserWidget (UTargetInfoWidget) in C++.
How should I go about this? SNew doesn't seem to like widgets, and you can't instantiate UObjects without some sort of constructing object (UWorld, GEngine, etc). Additionally, SNew suggests that the return be stored in a TSharedPtr or TSharedRef, which you can't use for UObjects.
Any ideas?
Thanks.
I'm trying to create my subclass of UUserWidget (UTargetInfoWidget) in C++.
How should I go about this? SNew doesn't seem to like widgets, and you can't instantiate UObjects without some sort of constructing object (UWorld, GEngine, etc). Additionally, SNew suggests that the return be stored in a TSharedPtr or TSharedRef, which you can't use for UObjects.
Any ideas?
Thanks.
Comment