Different Solution

I was looking at other solutions by other people and they were pretty similar but then i looked at my solution (it worked) and see that it is different.
My solution:

FString objectName = GetOwner()->GetName();
FVector objectPosVector = GetOwner()->GetActorLocation();
UE_LOG(LogTemp, Warning, TEXT("%s is at %s"), *objectName, *(objectPosVector.ToString()));

Logs:

LogTemp: Warning: SM_Rock_2 is at X=41.527 Y=8.465 Z=23.774

LogTemp: Warning: SM_Chair_2 is at X=364.593 Y=-55.711 Z=20.000

Privacy & Terms