FString ObjectName = GetOwner()->GetName();
FVector ObjectPosition;
GetOwner()->GetTransform().TransformPosition(ObjectPosition);
UE_LOG(LogTemp, Warning, TEXT("Position of %s is %s"), *ObjectName,*ObjectPosition.ToString());
So when I say FVector ObjectPosition, I am not exactly allocation memory? or Am i? Because if I use new It has to be a pointer of some sort.
Also noticed that I pass the ObjectPosition directly into TransformPosition (though the parameter accepts a reference (&)). Please elaborate on this.