DWQA QuestionsUnreal C++ logging
admin Staff asked 1 year ago
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT(“This is an on screen message!”));
UE_LOG(LogTemp, Log, TEXT(“Log text %f”), 0.1f);
UE_LOG(LogTemp, Warning, TEXT(“Log warning”));
UE_LOG(LogTemp, Error, TEXT(“Log error”));
FError::Throwf(TEXT(“Log error”));
FMessageDialog::Open(EAppMsgType::Ok, FText::FromString(TEXT(“Dialog message”)));
GEngine->AddOnScreenDebugMessage(10, 5, FColor::Blue, FString::Printf(TEXT(">>> BaseEyeHeight: %f"), AkaiBaseEyeHeight));

 

Converting Int to string :

 

int32 YourInt = 9000; FString IntAsString = FString::FromInt(YourInt);