Show / Hide Table of Contents

Class WWW

Inheritance
Object
CustomYieldInstruction
WWW
Implements
IEnumerator
IDisposable
Inherited Members
CustomYieldInstruction.Current
CustomYieldInstruction.MoveNext()
CustomYieldInstruction.Reset()
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
[Obsolete("Use UnityWebRequest, a fully featured replacement which is more efficient and has additional features")]
public class WWW : CustomYieldInstruction, IEnumerator, IDisposable

Constructors

| Improve this Doc View Source

WWW(String)

Declaration
public WWW(string url)
Parameters
Type Name Description
String url
| Improve this Doc View Source

WWW(String, Byte[])

Declaration
public WWW(string url, byte[] postData)
Parameters
Type Name Description
String url
Byte[] postData
| Improve this Doc View Source

WWW(String, Byte[], Dictionary<String, String>)

Declaration
public WWW(string url, byte[] postData, Dictionary<string, string> headers)
Parameters
Type Name Description
String url
Byte[] postData
Dictionary<String, String> headers
| Improve this Doc View Source

WWW(String, Byte[], Hashtable)

Declaration
[Obsolete("This overload is deprecated. Use UnityEngine.WWW.WWW(string, byte[], System.Collections.Generic.Dictionary<string, string>) instead.")]
public WWW(string url, byte[] postData, Hashtable headers)
Parameters
Type Name Description
String url
Byte[] postData
Hashtable headers
| Improve this Doc View Source

WWW(String, WWWForm)

Declaration
public WWW(string url, WWWForm form)
Parameters
Type Name Description
String url
WWWForm form

Properties

| Improve this Doc View Source

assetBundle

Declaration
public AssetBundle assetBundle { get; }
Property Value
Type Description
AssetBundle
| Improve this Doc View Source

bytes

Declaration
public byte[] bytes { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

bytesDownloaded

Declaration
public int bytesDownloaded { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

error

Declaration
public string error { get; }
Property Value
Type Description
String
| Improve this Doc View Source

isDone

Declaration
public bool isDone { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

keepWaiting

Declaration
public override bool keepWaiting { get; }
Property Value
Type Description
Boolean
Overrides
CustomYieldInstruction.keepWaiting
| Improve this Doc View Source

progress

Declaration
public float progress { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

responseHeaders

Declaration
public Dictionary<string, string> responseHeaders { get; }
Property Value
Type Description
Dictionary<String, String>
| Improve this Doc View Source

size

Declaration
[Obsolete("WWW.size is obsolete. Please use WWW.bytesDownloaded instead")]
public int size { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

text

Declaration
public string text { get; }
Property Value
Type Description
String
| Improve this Doc View Source

texture

Declaration
public Texture2D texture { get; }
Property Value
Type Description
Texture2D
| Improve this Doc View Source

textureNonReadable

Declaration
public Texture2D textureNonReadable { get; }
Property Value
Type Description
Texture2D
| Improve this Doc View Source

threadPriority

Declaration
public ThreadPriority threadPriority { get; set; }
Property Value
Type Description
ThreadPriority
| Improve this Doc View Source

uploadProgress

Declaration
public float uploadProgress { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

url

Declaration
public string url { get; }
Property Value
Type Description
String

Methods

| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

EscapeURL(String)

Declaration
public static string EscapeURL(string s)
Parameters
Type Name Description
String s
Returns
Type Description
String
| Improve this Doc View Source

EscapeURL(String, Encoding)

Declaration
public static string EscapeURL(string s, Encoding e)
Parameters
Type Name Description
String s
Encoding e
Returns
Type Description
String
| Improve this Doc View Source

GetAudioClip()

Declaration
public AudioClip GetAudioClip()
Returns
Type Description
AudioClip
| Improve this Doc View Source

GetAudioClip(Boolean)

Declaration
public AudioClip GetAudioClip(bool threeD)
Parameters
Type Name Description
Boolean threeD
Returns
Type Description
AudioClip
| Improve this Doc View Source

GetAudioClip(Boolean, Boolean)

Declaration
public AudioClip GetAudioClip(bool threeD, bool stream)
Parameters
Type Name Description
Boolean threeD
Boolean stream
Returns
Type Description
AudioClip
| Improve this Doc View Source

GetAudioClip(Boolean, Boolean, AudioType)

Declaration
public AudioClip GetAudioClip(bool threeD, bool stream, AudioType audioType)
Parameters
Type Name Description
Boolean threeD
Boolean stream
AudioType audioType
Returns
Type Description
AudioClip
| Improve this Doc View Source

GetAudioClipCompressed()

Declaration
public AudioClip GetAudioClipCompressed()
Returns
Type Description
AudioClip
| Improve this Doc View Source

GetAudioClipCompressed(Boolean)

Declaration
public AudioClip GetAudioClipCompressed(bool threeD)
Parameters
Type Name Description
Boolean threeD
Returns
Type Description
AudioClip
| Improve this Doc View Source

GetAudioClipCompressed(Boolean, AudioType)

Declaration
public AudioClip GetAudioClipCompressed(bool threeD, AudioType audioType)
Parameters
Type Name Description
Boolean threeD
AudioType audioType
Returns
Type Description
AudioClip
| Improve this Doc View Source

GetMovieTexture()

Declaration
[Obsolete("MovieTexture is deprecated. Use VideoPlayer instead.", false)]
public MovieTexture GetMovieTexture()
Returns
Type Description
MovieTexture
| Improve this Doc View Source

LoadFromCacheOrDownload(String, Int32)

Declaration
public static WWW LoadFromCacheOrDownload(string url, int version)
Parameters
Type Name Description
String url
Int32 version
Returns
Type Description
WWW
| Improve this Doc View Source

LoadFromCacheOrDownload(String, Int32, UInt32)

Declaration
public static WWW LoadFromCacheOrDownload(string url, int version, uint crc)
Parameters
Type Name Description
String url
Int32 version
UInt32 crc
Returns
Type Description
WWW
| Improve this Doc View Source

LoadFromCacheOrDownload(String, CachedAssetBundle, UInt32)

Declaration
public static WWW LoadFromCacheOrDownload(string url, CachedAssetBundle cachedBundle, uint crc = 0U)
Parameters
Type Name Description
String url
CachedAssetBundle cachedBundle
UInt32 crc
Returns
Type Description
WWW
| Improve this Doc View Source

LoadFromCacheOrDownload(String, Hash128)

Declaration
public static WWW LoadFromCacheOrDownload(string url, Hash128 hash)
Parameters
Type Name Description
String url
Hash128 hash
Returns
Type Description
WWW
| Improve this Doc View Source

LoadFromCacheOrDownload(String, Hash128, UInt32)

Declaration
public static WWW LoadFromCacheOrDownload(string url, Hash128 hash, uint crc)
Parameters
Type Name Description
String url
Hash128 hash
UInt32 crc
Returns
Type Description
WWW
| Improve this Doc View Source

LoadImageIntoTexture(Texture2D)

Declaration
public void LoadImageIntoTexture(Texture2D texture)
Parameters
Type Name Description
Texture2D texture
| Improve this Doc View Source

UnEscapeURL(String)

Declaration
public static string UnEscapeURL(string s)
Parameters
Type Name Description
String s
Returns
Type Description
String
| Improve this Doc View Source

UnEscapeURL(String, Encoding)

Declaration
public static string UnEscapeURL(string s, Encoding e)
Parameters
Type Name Description
String s
Encoding e
Returns
Type Description
String

Implements

System.Collections.IEnumerator
System.IDisposable

Extension Methods

WWWAudioExtensions.GetAudioClip(WWW)
WWWAudioExtensions.GetAudioClip(WWW, Boolean)
WWWAudioExtensions.GetAudioClip(WWW, Boolean, Boolean)
WWWAudioExtensions.GetAudioClip(WWW, Boolean, Boolean, AudioType)
WWWAudioExtensions.GetAudioClipCompressed(WWW)
WWWAudioExtensions.GetAudioClipCompressed(WWW, Boolean)
WWWAudioExtensions.GetAudioClipCompressed(WWW, Boolean, AudioType)
WWWAudioExtensions.GetMovieTexture(WWW)
MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX