Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Load URL without launching the default browser.

Discussion in 'Multiplayer' started by inno, Oct 16, 2008.

  1. inno

    inno

    Joined:
    Oct 9, 2008
    Posts:
    39
    The Application.OpenURL opens a URL by launching the default browser. I want the same effect but without launching the browser, is that possible?
     
  2. AngryAnt

    AngryAnt

    Keyboard Operator

    Joined:
    Oct 25, 2005
    Posts:
    3,045
    Then what exactly do you want to happen?
     
  3. inno

    inno

    Joined:
    Oct 9, 2008
    Posts:
    39
    The user will click on a button or 3d object and it will trigger this url. I dont want a browser launch since this url will actually hit a php file. I want it to be transparent to the user.
     
  4. Lka

    Lka

    Joined:
    Aug 6, 2006
    Posts:
    297
    You can use the WWW class:

    WWW download = new WWW(command,paramsPost);
    yield return download;
     
  5. HiggyB

    HiggyB

    Unity Product Evangelist

    Joined:
    Dec 8, 2006
    Posts:
    6,183
    Bingo, the WWW class is what you ought to be using if this is really about pulling data in some way.
     
  6. inno

    inno

    Joined:
    Oct 9, 2008
    Posts:
    39
    I just saw it also. Thank you for all the help.