I have problem.
When I try to load my BP widget via WidgetComponent in AMyActor, I have some strange behavior. Its work for started Editor. Compile successful, no errors, all works fine.
BUT.
If I close Editor and start it again - Editor will failed to load with error - cannot find BP Widget.
How it happens:
I have AActor Object with WidgetComponent;
I created struct FWidgetRef form FTableRowBase;
In struct I added TSubclassOf<UUserWidget> MenuWidget;
I created BP MyWidget with some buttons;
I created MyDataTable via Blueprint;
I set link to **MyWidget **in MyDataTable.
I get *FWidgetRef = MyDataTable->FindRow<FWidgetRef>( FName( “NewRow” ), FString( “Cannot find DataTable with Widget via DT->FindRow” ), true );
I have more then 16 blueprint classes, that inhert from C++ class.
So I want to create once WidgetComponent and set once MyWidget. And now its dont want to work =)
And, I don’t try yet set Widget in BeginPlay. And I think - its way too.
If I want to use TSubclassOf in C++ class then I need set MyWidget in all my 16 BPClasses widget manually.
Its not so cool =) If I will want to create another 16 BP classes? I must to remember, that I must set widgets in all new BP manually? =(((