Not sure why,
but code compiles fine, but crashes on me.
void UPositionReport::BeginPlay()
{
Super::BeginPlay();// …
FString ObjectName = GetOwner()->GetName();
FVector ObjectTranslation = GetOwner()->GetTransform().GetTranslation();
UE_LOG(LogTemp, Warning, TEXT("%s is at position x:%s y:%s z:%s"), *ObjectName, ObjectTranslation.X, ObjectTranslation.Y, ObjectTranslation.Z);
}
Slightly different approach, but would have thought this works. I will play a bit more, but if somebody has an idea.