Search Unity

Open a browser with a specific site in it

Discussion in 'Scripting' started by loser, Mar 3, 2010.

  1. loser

    loser

    Joined:
    Mar 3, 2010
    Posts:
    2
    Hi guys,

    I was trying to open a URL from the script. Looked at WWW and WWWForm, but could not find a way to open a browser with a website in it. I just want to show some player statistics on the webpage using php. So is there a way to open a document (URL) from unity so that a browser is started?

    Thank you!
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    do you want to start it from a standalone game or webplayer.

    in case of webplayer its impossible basically, as popup blockers will block your attempt to open a new tab / window
     
  3. loser

    loser

    Joined:
    Mar 3, 2010
    Posts:
    2
    Thx for ur reply,

    I want it from the standalone. Like you can do this in win32 or linux executing a command (say, some name of a document) and the OS finds an appropriate application to open it.

    Thx!
     
  4. Deleted User

    Deleted User

    Guest

    In the Scripting Reference, check out Application.OpenURL