Unreal Log

posted in: Non classé | 0

// 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


String format : https://www.cplusplus.com/reference/cstdio/printf/

Leave a Reply

Your email address will not be published. Required fields are marked *