I found another Solution to get an Object Location in C++ with UE

Hi Guys. I found another solution to get an Object Location in C++ with UE.

FString ObjectLocation = GetOwner()->GetActorLocation().ToString();
UE_LOG(LogTemp, Warning, TEXT(" %s is located on %s"),*GetOwner()->GetName(),*ObjectLocation);

I have used GetActorLocation() method. It returns a FVector.

Privacy & Terms