Where does the Unity web player write its log output on Windows? (Windows Firefox, if that makes a difference)
I’ve seen reference to an output_log.txt file that is created by the standalone player, but there doesn’t appear to be any such file created by the web player.
Web player log files on Windows are written to TEMP\UnityWebPlayer\log folder. The TEMP is the “temporary folder” location that is returned by windows API.
On Windows XP, TEMP is usually C:\Documents and Setings*username*\Local Settings\Temp. On Windows Vista, it can be in different places, depending on whether it’s IE7 or anoother browser, whether UAC (aka “annoying security dialogs”) are on or off, and whether the browsed file comes from the internet, intranet or local disk. Gotta love Vista, eh?
While developing and testing something, I find it easiest to locate the log file folder and make a shortcut to it on the desktop.
The log files themselves look like: log_StringOfRandomCharacters.txt. This is because multiple Unity content instances can be running at the same time, so it can’t just use one log file. In case of game crashes, most of the time the log files are cleaned up, but once in a while they are not. It’s totally safe to delete any old log files.