From e468f5860df0ce61fd7c4c786b08aa20bea873be Mon Sep 17 00:00:00 2001 From: Jonathan Wendt <wendt@vr.rwth-aachen.de> Date: Mon, 3 Jun 2019 13:04:13 +0200 Subject: [PATCH] use UDisplayClusterSceneComponent for flystick --- Source/WidgetInteraction/Private/WidgetInteraction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/WidgetInteraction/Private/WidgetInteraction.cpp b/Source/WidgetInteraction/Private/WidgetInteraction.cpp index e328617..40b70e8 100644 --- a/Source/WidgetInteraction/Private/WidgetInteraction.cpp +++ b/Source/WidgetInteraction/Private/WidgetInteraction.cpp @@ -71,7 +71,7 @@ void FWidgetInteractionModule::OnWorldTickStart(ELevelTick level_tick, float val else { //if this is a cluster setup we attach it to the flystick name = TEXT("flystick"); - component_class = UMotionControllerComponent::StaticClass(); + component_class = UDisplayClusterSceneComponent::StaticClass(); } auto parent_vec = vr_pawn->GetComponentsByClass(component_class); @@ -85,7 +85,7 @@ void FWidgetInteractionModule::OnWorldTickStart(ELevelTick level_tick, float val } if (!success) - UE_LOG(LogTemp, Error, TEXT("Failed to load widget asset \"%s"), *name); + UE_LOG(LogTemp, Error, TEXT("Failed to load widget asset \"%s\", cannot attach widget interaction component"), *name); } } -- GitLab