From 5a26fefa1ade9917ed7efb21111273982c4d621a Mon Sep 17 00:00:00 2001
From: Kris Helwig <helwig@vr.rwth-aachen.de>
Date: Tue, 22 Apr 2025 12:59:08 +0200
Subject: [PATCH] Fixes POI billboard attachment setup

---
 Source/RWTHVRQuickStart/Private/PointOfInterest.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Source/RWTHVRQuickStart/Private/PointOfInterest.cpp b/Source/RWTHVRQuickStart/Private/PointOfInterest.cpp
index 30b7635..d467d4b 100644
--- a/Source/RWTHVRQuickStart/Private/PointOfInterest.cpp
+++ b/Source/RWTHVRQuickStart/Private/PointOfInterest.cpp
@@ -22,7 +22,8 @@ APointOfInterest::APointOfInterest()
 	{
 		UE_LOGFMT(POILog, Verbose, "POILog: Could not find location marker Texture. The Asset might have moved.");
 	}
-	Billboard->AttachToComponent(RootComponent, FAttachmentTransformRules::SnapToTargetIncludingScale);
+	Billboard->SetupAttachment(RootComponent);
+	
 	Billboard->SetHiddenInGame(true);
 	Billboard->SetWorldScale3D(FVector(0.1f, 0.1f, 0.1f));
 }
-- 
GitLab