Skip to content
Snippets Groups Projects
Commit 31e221dc authored by David Gilbert's avatar David Gilbert :bug:
Browse files

fix: Fixes issue with CaveOverlay, renames logging and actually adds some logging.

parent e56f4759
No related branches found
No related tags found
No related merge requests found
Pipeline #388849 failed
...@@ -217,6 +217,12 @@ void ACAVEOverlayController::BeginPlay() ...@@ -217,6 +217,12 @@ void ACAVEOverlayController::BeginPlay()
// Set Text to "" until someone presses the key for the first time // Set Text to "" until someone presses the key for the first time
Overlay->CornerText->SetText(FText::FromString("")); 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 // Get the pawn so we can have access to head and hand positions
if (const auto* VRPawn = Cast<APawn>(PC->GetPawnOrSpectator())) if (const auto* VRPawn = Cast<APawn>(PC->GetPawnOrSpectator()))
{ {
......
...@@ -23,6 +23,7 @@ void ACaveSetup::BeginPlay() ...@@ -23,6 +23,7 @@ void ACaveSetup::BeginPlay()
if (!URWTHVRClusterUtilities::IsRoomMountedMode()) if (!URWTHVRClusterUtilities::IsRoomMountedMode())
{ {
UE_LOGFMT(RWTHVRCluster, Display, "CaveSetup: Not in RoomMountedMode, doing nothing.");
return; return;
} }
...@@ -33,7 +34,7 @@ void ACaveSetup::BeginPlay() ...@@ -33,7 +34,7 @@ void ACaveSetup::BeginPlay()
{ {
const auto Actor = World->SpawnActor(ActorClass); const auto Actor = World->SpawnActor(ActorClass);
Actor->AttachToActor(this, FAttachmentTransformRules::SnapToTargetNotIncludingScale); 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()); Actor->GetName());
} }
} }
...@@ -46,7 +47,7 @@ void ACaveSetup::BeginPlay() ...@@ -46,7 +47,7 @@ void ACaveSetup::BeginPlay()
{ {
LiveLinkPresetToApplyOnCave->ApplyToClientLatent(); LiveLinkPresetToApplyOnCave->ApplyToClientLatent();
UE_LOGFMT(LogTemp, Display, "CaveSetup: Applied LiveLinkPreset {Preset} to Client.", UE_LOGFMT(RWTHVRCluster, Display, "CaveSetup: Applied LiveLinkPreset {Preset} to Client.",
LiveLinkPresetToApplyOnCave->GetName()); LiveLinkPresetToApplyOnCave->GetName());
} }
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "Engine/LocalPlayer.h" #include "Engine/LocalPlayer.h"
#include "Game/IDisplayClusterGameManager.h" #include "Game/IDisplayClusterGameManager.h"
DEFINE_LOG_CATEGORY(ClusterPlugin); DEFINE_LOG_CATEGORY(RWTHVRCluster);
bool URWTHVRClusterUtilities::IsRoomMountedMode() bool URWTHVRClusterUtilities::IsRoomMountedMode()
{ {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
/** /**
* Custom log category for all ClusterPlugin related components * Custom log category for all ClusterPlugin related components
*/ */
DECLARE_LOG_CATEGORY_EXTERN(ClusterPlugin, Log, All); DECLARE_LOG_CATEGORY_EXTERN(RWTHVRCluster, Log, All);
UENUM(BlueprintType) UENUM(BlueprintType)
enum class ENamedClusterComponent : uint8 enum class ENamedClusterComponent : uint8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment