Hello All. I am trying to better understand the uses and differences in a particular situation when it comes to pointers, references and de-referencing…
In the c++ course he goes over this and I need help understanding the differences and uses for these similar ways of doing it.
FString Sphere = GetOwner()->GetName();
FString* PtrSphere = &Sphere;
UE_LOG(LogTemp, Warning, TEXT("Tis I, %s"), **PtrSphere);
UE_LOG(LogTemp, Warning, TEXT("Tis I, %s"), *GetOwner()->GetName());
FString Sphere = GetOwner()->GetName();
UE_LOG(LogTemp, Warning, TEXT(Tis I, %s), *Sphere);