I’m trying to read out the console through script, and while getting the first line (condition) and the second one (stackTrace) is super simple, I can’t figure out how to get the third one, the one that tells me which objects led to triggering the actual event. Any tips?
private void OnEnable()
{
Application.logMessageReceived += AddConsoleText;
}
private void AddConsoleText(string condition, string stackTrace, LogType type)
{
if (type == LogType.Warning) return;
conditionText = condition;
stackTraceText = stackTrace;
}