diff --git a/Source/RWTHVRCluster/Private/CAVEOverlay/CAVEOverlayController.cpp b/Source/RWTHVRCluster/Private/CAVEOverlay/CAVEOverlayController.cpp index 4f27161686e7c6d20ca1b847da89a875e3c42e9c..968e799cd6774ff9c9c104c509b0040a2af80295 100644 --- a/Source/RWTHVRCluster/Private/CAVEOverlay/CAVEOverlayController.cpp +++ b/Source/RWTHVRCluster/Private/CAVEOverlay/CAVEOverlayController.cpp @@ -217,6 +217,12 @@ void ACAVEOverlayController::BeginPlay() // Set Text to "" until someone presses the key for the first time Overlay->CornerText->SetText(FText::FromString("")); + if (!SignStaticMesh) + { + UE_LOGFMT(LogCAVEOverlay, Error, "SignStaticMesh not set in CaveOverlayController!"); + return; + } + // Get the pawn so we can have access to head and hand positions if (const auto* VRPawn = Cast<APawn>(PC->GetPawnOrSpectator())) { diff --git a/Source/RWTHVRCluster/Private/CaveSetup.cpp b/Source/RWTHVRCluster/Private/CaveSetup.cpp index 63456d4309d4af0b21899b3e72431add8facae70..369f4e998f801a5638b02ac41ed79fb92fc61c89 100644 --- a/Source/RWTHVRCluster/Private/CaveSetup.cpp +++ b/Source/RWTHVRCluster/Private/CaveSetup.cpp @@ -23,6 +23,7 @@ void ACaveSetup::BeginPlay() if (!URWTHVRClusterUtilities::IsRoomMountedMode()) { + UE_LOGFMT(RWTHVRCluster, Display, "CaveSetup: Not in RoomMountedMode, doing nothing."); return; } @@ -33,7 +34,7 @@ void ACaveSetup::BeginPlay() { const auto Actor = World->SpawnActor(ActorClass); Actor->AttachToActor(this, FAttachmentTransformRules::SnapToTargetNotIncludingScale); - UE_LOGFMT(LogTemp, Display, "CaveSetup: Spawned Actor {Actor} on the Cave and attached it.", + UE_LOGFMT(RWTHVRCluster, Display, "CaveSetup: Spawned Actor {Actor} on the Cave and attached it.", Actor->GetName()); } } @@ -46,7 +47,7 @@ void ACaveSetup::BeginPlay() { LiveLinkPresetToApplyOnCave->ApplyToClientLatent(); - UE_LOGFMT(LogTemp, Display, "CaveSetup: Applied LiveLinkPreset {Preset} to Client.", + UE_LOGFMT(RWTHVRCluster, Display, "CaveSetup: Applied LiveLinkPreset {Preset} to Client.", LiveLinkPresetToApplyOnCave->GetName()); } } diff --git a/Source/RWTHVRCluster/Private/Utility/RWTHVRClusterUtilities.cpp b/Source/RWTHVRCluster/Private/Utility/RWTHVRClusterUtilities.cpp index f1f2a4cdb160a8ff0f543659602b54a1a1dba71a..28934758424630e5498f3d90d14f980cb1bf225b 100644 --- a/Source/RWTHVRCluster/Private/Utility/RWTHVRClusterUtilities.cpp +++ b/Source/RWTHVRCluster/Private/Utility/RWTHVRClusterUtilities.cpp @@ -10,7 +10,7 @@ #include "Engine/LocalPlayer.h" #include "Game/IDisplayClusterGameManager.h" -DEFINE_LOG_CATEGORY(ClusterPlugin); +DEFINE_LOG_CATEGORY(RWTHVRCluster); bool URWTHVRClusterUtilities::IsRoomMountedMode() { diff --git a/Source/RWTHVRCluster/Public/Utility/RWTHVRClusterUtilities.h b/Source/RWTHVRCluster/Public/Utility/RWTHVRClusterUtilities.h index cfd6f305139838e9d0c8467a7f511f55e7e78dcf..0ead84a997d31bafc12f76475a8917943534f39b 100644 --- a/Source/RWTHVRCluster/Public/Utility/RWTHVRClusterUtilities.h +++ b/Source/RWTHVRCluster/Public/Utility/RWTHVRClusterUtilities.h @@ -11,7 +11,7 @@ /** * Custom log category for all ClusterPlugin related components */ -DECLARE_LOG_CATEGORY_EXTERN(ClusterPlugin, Log, All); +DECLARE_LOG_CATEGORY_EXTERN(RWTHVRCluster, Log, All); UENUM(BlueprintType) enum class ENamedClusterComponent : uint8