Unreal Log

Classé dans : 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

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/

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *