Hi there,
No useful information appears to be getting outputted to console when running on Unity Web Player (tested in Safari on OSX Yosemite, Unity 5.1.1f1).
i.e. No Debug.Log, Debug.LogError or System.Exceptions are appearing in the WebPlayer.log file. Only startup and exit information.
To test this, I created an empty scene with a Text label, and this script attached to the Camera:
public class TestConsole : MonoBehaviour
{
public Text text;
void Update()
{
text.text = "Before Text Message";
Debug.Log ("Debug.Log Message");
Debug.LogError ("Debug.LogError Message");
throw new System.Exception("Throw new System.Exception message");
text.text = "After Text Message";
}
}
In the Editor and Web Player, the Text label is set to “Before Text Message”, which means that the script is running and the Exception is being thrown.
When run in the Editor, the Editor log shows the information regarding the Debug.Log, Debug.LogError and System.Exception calls. When run in the Web Player, all I get is this:
Any ideas? I’m sure this will turn out to be something simple like an Editor setting or something!
All the best,
Joel