How I can I output the terminal / CLI when my app is run from the terminal / CLI?
Let's say I want to use Unity to make a command line utility. For example on OSX the user might type
myUnityTerminalApp/Contents/MacOS/myUnityTerminalApp -i somefile -output someotherfile
I'd like to print things (errors, results) to the terminal but apparently unity defaults to capturing `stdout` into a file. I tried outputting to `System.Console.OpenStandardOutput()` but that didn't work either.
How can I output to the terminal?
↧