Skip to content
Snippets Groups Projects
Commit ce89330b authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

improve how to not log data to HUD, but still in the participant log

parent 0c2bef84
No related branches found
No related tags found
No related merge requests found
......@@ -994,10 +994,9 @@ void USFGameInstance::LogData(const FString& DependentVariableName, const FStrin
{
return;
}
if (bAlsoLogToHUD)
{
LogComment("Recorded " + DependentVariableName + ": " + Value);
}
LogComment("Recorded " + DependentVariableName + ": " + Value, bAlsoLogToHUD);
//the data is stored in the phase long table on SetCondition() or EndStudy()
}
......@@ -1015,14 +1014,12 @@ void USFGameInstance::LogTrialData(const FString& DependentVariableName, const T
return;
}
if (bAlsoLogToHUD)
{
FString Data = "";
for (const FString& Value : Values)
{
Data += (Data.IsEmpty() ? "{" : ",") + Value;
}
Data += "}";
LogComment("Recorded " + DependentVariableName + ": " + Data);
}
LogComment("Recorded " + DependentVariableName + ": " + Data, bAlsoLogToHUD);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment