{
Super::BeginPlay();
FString Name = GetOwner()->GetActorNameOrLabel();
FVector Location = GetOwner()->GetActorLocation();
UE_LOG(LogTemp, Warning, TEXT("Mover Owner: %s"), *Name);
UE_LOG(LogTemp, Warning, TEXT("Actor Location: %s"), *Location.ToCompactString());
}
In this code, I understand why * was placed after AActor, but I don’t understand why it wasn’t placed after the FVector and FString, as they are also pointers. and how can ‘Name’ and ‘Location’ Variables be dereferenced when they’re not pointers, but string and vector?
I’m following https://www.udemy.com/course/unrealcourse/
8