// Like Blueprint Print
UKismetSystemLibrary::PrintString(this, “Your message”);
UKismetSystemLibrary::PrintString(this, FString(“Enable movement to “) + FString(enable ? “true” : “false”));
// Just to log
UE_LOG(LogTemp, Warning, TEXT(“Your message”));
// Just to screen
GEngine->AddOnScreenDebugMessage(-1, 1.5, FColor::White,text)
If you start a print by “Error:” or “Warning:” it will be display in red/orange
https://nerivec.github.io/old-ue4-wiki/pages/logs-printing-messages-to-yourself-during-runtime.html
String format : https://www.cplusplus.com/reference/cstdio/printf/
Leave a Reply