Hi,
I tried to jump ahead and do the start of the lecture before it was demonstrated. I used:
AActor* Owner = GetOwner();
UE_LOG(LogTemp, Warning, TEXT(“Owner Actor Name: %s”), *Owner->GetName());
This gives an answer of:
LogTemp: Warning: Owner Actor Name: StaticMeshActor_525
When I changed my code to use GetActorNameOrLabel() instead of GetName(), the output changes to : LogTemp: Warning: Owner Actor Name: SM_CastleWallEntranceDoor.
Why does GetName() not work here? I have looked for the name StaticMeshActor_525 and I can not find it on the object so I have no idea where it is coming from.
Any help would be appreciated.
Thanks