What I am currently doing can be summarized as:
var stdOut = System.Console.Out;
var consoleOut = new StringWriter();
System.Console.SetOut(consoleOut);
//.dll call that calls System.Console.Write/WriteLine
Debug.Log( consoleOut.ToString());
System.Console.SetOut(stdOut);
This works but will only output to the Unity console after all my calls are finished.
Is it possible to whenever System.Console.Write is called in the .dll, to output immediately to Unity console?
↧