Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

A WWW Alternative.

Discussion in 'Made With Unity' started by simonwittber, Jan 26, 2011.

  1. simonwittber

    simonwittber

    Joined:
    May 13, 2008
    Posts:
    228
    ANN: An alternative to the WWW class.

    It is not a real alternative yet, as it does not load asset bundles or work directly with coroutines. However, you can set and get headers, read status code etc.

    It should also work in places where the .Net WebRequest.Create has been disabled. Please test away and let me know if fixes/features are required!

    Update: Now supports gzip encoded responses.

    Update: Now supports Etag caching, fixed dechunking bug.

    Update: Now works on iOS, Mac, Win and Web.
     
    Last edited: Jan 31, 2011
  2. zachypin

    zachypin

    Joined:
    Jun 7, 2011
    Posts:
    33
    Are there any tutorials for implementation?
     
  3. yomo710

    yomo710

    Joined:
    May 25, 2011
    Posts:
    77
    What is the www class
     
  4. zachypin

    zachypin

    Joined:
    Jun 7, 2011
    Posts:
    33
    http://unity3d.com/support/documentation/ScriptReference/WWW.html
    http://unity3d.com/support/documentation/ScriptReference/WWWForm.html

    You use it to communicate between your Unity world and resources on the Internet. WWW doesn't offer everything necessary though so there are other methods, this one looks pretty good. Another option is .Net, but I don't think that works on IOS or web player.

    There should be a bunch more documentation on unityweb though, it'd make it way more popular if it was easy to understand, easy to implement, and if there was an easy way to know its advantages.
     
    Last edited: Jun 10, 2011
  5. aayars

    aayars

    Joined:
    May 15, 2008
    Posts:
    46
    Very nice. The status code thing is sorely needed in the base class; may check this out! Good work.