I hope I don’t land this question in the wrong section here, I just migrated from Udemy, so please bear with me
Doing the challenge myself, I thought it would be a great idea to use GetDebugName instead of GetName() since I looked it up in the UE documentation and the description seemed quite fitting:
" Retrieves actor’s name used for logging, or string “NULL” if Actor is null ".
However, I can’t seem to make it work. I know it wants an AActor as a parameter, so that would be
GetDebugName( GetOwner ) no ? and since it returns a FString anyways I wouldn’t have to transform it. However, this line does not work:
UE_LOG(LogTemp, Error, TEXT("%s"), *GetDebugName(GetOwner() ));
The error is:
F:\Unreal_Projects\Building_Escape02\Source\Building_Escape02\OpenDoor.cpp(29) : error C3861: ‘GetDebugName’: identifier not found
i did: #include “GameFramework/Actor.h”