Skip to content
Snippets Groups Projects
Commit 6d879d75 authored by aenneking's avatar aenneking
Browse files

add log for failure of create widget interaction

parent d7a01a38
Branches
Tags
No related merge requests found
......@@ -67,9 +67,15 @@ void FWidgetInteractionModule::OnWorldTickStart(ELevelTick level_tick, float val
}
auto parent_vec = vr_pawn->GetComponentsByClass(component_class);
bool success;
for (auto parent : parent_vec)
if (parent->GetName() == FString(name))
CreateWidgetInteraction(dynamic_cast<USceneComponent*>(parent), vr_pawn);
{
CreateWidgetInteraction(dynamic_cast<USceneComponent*>(parent), vr_pawn);
success = true;
}
if(!success)
UE_LOG(LogTemp, Error, TEXT("Failed to load widget asset \"%s"), *name);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment