GetActorLabel & GetName & GetActorNameOrLabel

I know the GetActorLabel function is to get the actor’s Item Label, and the GetName function is to get the ID Name.
What about the GetActorNameOrLabel function? All I get when I try to use it is the Item Label.
My question is what is the difference between GetActorLabel and GetActorNameOrLabel ?

Reference:

If the actor has a label it will return the label. Otherwise it will return the name (such as in a packaged shipping game).

2 Likes

Labels don’t exist in non-editor builds. You would get a compile error for GetActorLabel without using
#if WITH_EDITOR

2 Likes

@JaredTherriault @Rumzie Thanks for the information!