Skip to content
Snippets Groups Projects
Commit 8f059904 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

add more debug output

parent b150a3e8
No related branches found
No related tags found
2 merge requests!2pull changes forward,!1Fix/cluster event wrapper
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -24,10 +24,15 @@ public: ...@@ -24,10 +24,15 @@ public:
void Attach(ObjectType* NewObject) void Attach(ObjectType* NewObject)
{ {
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Attach()."))
checkf(Object == nullptr, TEXT("The event is already attached.")); checkf(Object == nullptr, TEXT("The event is already attached."));
Object = NewObject; Object = NewObject;
ObjectId = Object->GetUniqueID(); ObjectId = Object->GetUniqueID();
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Object UniqueID: %d."), ObjectId)
EDisplayClusterOperationMode OperationMode = IDisplayCluster::Get().GetOperationMode(); EDisplayClusterOperationMode OperationMode = IDisplayCluster::Get().GetOperationMode();
if (OperationMode == EDisplayClusterOperationMode::Cluster) if (OperationMode == EDisplayClusterOperationMode::Cluster)
{ {
...@@ -51,6 +56,7 @@ public: ...@@ -51,6 +56,7 @@ public:
if (EventObjectId != ObjectId) if (EventObjectId != ObjectId)
{ {
// Event does not belong to this object. // Event does not belong to this object.
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Event does not belong to this object %d vs %d (this object)."), EventObjectId, ObjectId)
return; return;
} }
...@@ -60,6 +66,7 @@ public: ...@@ -60,6 +66,7 @@ public:
if (EventMethodName != MethodName) if (EventMethodName != MethodName)
{ {
// This event does not belong to this method. // This event does not belong to this method.
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] This event does not belong to this method. %s vs %s (this object)."), *EventMethodName, *MethodName)
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment