Hello,
So I’m trying to get UE_Log to work in MyProjectCharacter.cpp, and I’m not having much luck.
Here is what I have:
MyProjectCharacter.cpp:
// Header data above this line...
DEFINE_LOG_CATEGORY(LogMyCharacter);
// Constructor and all that jazz goes here [...]
void AMyProjectCharacter::PostBeginPlay()
{
Super::PostBeginPlay();
UE_LOG(LogMyCharacter, Log, TEXT("Chickens"));
}
After registering a log and attempting to output via UE_Log, the compiler spits this out:
Any idea why? (I’ve also tried “DEFINE_LOG_CATEGORY(LogMyCharacter)” without the semicolon – the result is the same.
Thing about shootergame is that it explicitly defines log categories outside of the character file. So I don’t know for certain if I’m allowed to make any log statements within the character file, if this is intended behavior, a bug, or just plain user error.
Could use some help on this one…
