Skip to content
Snippets Groups Projects
Commit 5a26fefa authored by Kris Tabea Helwig's avatar Kris Tabea Helwig
Browse files

Fixes POI billboard attachment setup

parent d5f20d5b
No related branches found
No related tags found
1 merge request!1Implements `PointOfInterest`s
...@@ -22,7 +22,8 @@ APointOfInterest::APointOfInterest() ...@@ -22,7 +22,8 @@ APointOfInterest::APointOfInterest()
{ {
UE_LOGFMT(POILog, Verbose, "POILog: Could not find location marker Texture. The Asset might have moved."); 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->SetHiddenInGame(true);
Billboard->SetWorldScale3D(FVector(0.1f, 0.1f, 0.1f)); Billboard->SetWorldScale3D(FVector(0.1f, 0.1f, 0.1f));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment