mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Log when the initial focus widget name is incorrect
This commit is contained in:
parent
a0f9a6a71e
commit
f3f880f562
@ -13,6 +13,12 @@ void UFocusablePanel::NativeConstruct()
|
||||
if (!InitialFocusWidgetName.IsNone())
|
||||
{
|
||||
InitialFocusWidget = WidgetTree->FindWidget(InitialFocusWidgetName);
|
||||
#if WITH_EDITOR
|
||||
if (!InitialFocusWidget.IsValid())
|
||||
{
|
||||
UE_LOG(LogStevesUI, Error, TEXT("Initial focus widget `%s` not found on %s, focus will be lost"), *InitialFocusWidgetName.ToString(), *GetName())
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user