Variables On Log
Unreal
FString MyStringValue = "String"; UE_LOG(LogTemp, Display, TEXT("FString value is: %s"), *MyStringValue); bool MyBoolValue = true; UE_LOG(LogTemp, Display, TEXT("bool value is: %s"), MyBoolValue? "true" : "false"); float MyFloatValue = 8; UE_LOG(LogTemp, Display, TEXT("float value is: %f"), MyFloatValue); int MyIntValue = 3; UE_LOG(LogTemp, Display, TEXT("Integer value is: %i"), MyIntValue);Unity
var boolValue = true; var floatValue = 8; var intValue = 3; Debug.Log("bool value is: " + boolValue + "\n" + "float value is: " + floatValue + "\n" + "Integer value is: " + intValue);
Comments
Post a Comment