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

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

parent 864ddc52
No related branches found
No related tags found
No related merge requests found
......@@ -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()))
{
......
......@@ -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());
}
}
......
......@@ -10,7 +10,7 @@
#include "Engine/LocalPlayer.h"
#include "Game/IDisplayClusterGameManager.h"
DEFINE_LOG_CATEGORY(ClusterPlugin);
DEFINE_LOG_CATEGORY(RWTHVRCluster);
bool URWTHVRClusterUtilities::IsRoomMountedMode()
{
......
......@@ -121,7 +121,7 @@ public:
UStaticMeshComponent* Tape;
// Right Hand Sign Static Mesh Reference
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "CAVEOverlay", meta = (AllowPrivateAccess = "true"))
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "CAVEOverlay", meta = (AllowPrivateAccess = "true"))
UStaticMesh* SignStaticMesh;
// Static Mesh Components for all tracked MotionControllers
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment