Search Unity

Debug Web Player

Discussion in 'Scripting' started by dansav, Apr 23, 2008.

  1. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    510
    is there any sort of debug.log type of thing for the web player.

    Any way to tell if things are going wrong or errors are cropping up while using the web player? I am building a browser interface for a Unity3D project and need to know if communications are going through correctly back and forth.

    Thanks,

    Dan
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Yep: Debug.Log. :)

    --Eric
     
  3. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    510
    How do you view it from the webplayer?

    Dan
     
  4. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    On the Mac, it is printed to system console (/Applications/Utilities/Console.app).

    On Windows, the web player output is logged to files in {TEMP}\UnityWebPlayer\log folder. In Windows XP, they are usually in C:\Documents and Setings\{UserName}\Local Settings\Temp\UnityWebPlayer\log. It's easiest to create a shortcut to this folder somewhere for quick access.
     
  5. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    510
    Great to know.
    I will try it.

    Thanks,

    Dan