From 3b51382488237e200544cda9e270fe457067836a Mon Sep 17 00:00:00 2001 From: David Gilbert <gilbert@vr.rwth-aachen.de> Date: Tue, 7 Jan 2025 10:49:04 +0100 Subject: [PATCH] chore(pawn, cave): Improves logging when unsupported player state is chosen for Cluster Attachment. --- Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp index 812e83e..f6f9f1c 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp @@ -84,6 +84,12 @@ void ARWTHVRPawn::NotifyControllerChanged() AttachClustertoPawn(); } } + else + { + UE_LOGFMT(Toolkit, Warning, + "ARWTHVRPawn: PlayerState is not a subclass of ARWTHVRPlayerState. Cluster attachment only works " + "with correct PlayerStates!"); + } } } -- GitLab