URL and some options for WwwLoader
, cast from string
to create if use URL only.
More...
|
readonly string | url |
| The URL to download or post, it must be "%" escaped, as UnityEngine.WWW API. More...
|
|
WWWForm | form |
| The UnityEngine.WWWForm used to post values or bytes. More...
|
|
float | timeout |
| The timeout seconds to interrupt the loading process when over a positive time. More...
|
|
TimeSpan | cache |
| The lifetime of cache file. More...
|
|
bool | sync |
| Sync flag to block the main thread while loading. More...
|
|
URL and some options for WwwLoader
, cast from string
to create if use URL only.
WwwOption |
( |
string |
url, |
|
|
WWWForm |
form = null , |
|
|
float |
timeout = 0f , |
|
|
TimeSpan |
cache = default , |
|
|
bool |
sync = false |
|
) |
| |
Initialize each value specified.
- Parameters
-
url | URL. |
form | Form. |
timeout | Timeout. |
cache | Cache. |
sync | If set to true sync. |
- Returns
- The instance.
override string ToString |
( |
| ) |
|
Return the url
.
- Returns
- A
string
represents this.
static implicit operator WwwOption |
( |
string |
url | ) |
|
|
static |
The URL to download or post, it must be "%" escaped, as UnityEngine.WWW
API.
The UnityEngine.WWWForm
used to post values or bytes.
The timeout seconds to interrupt the loading process when over a positive time.
The lifetime of cache file.
By default, always to load cache file if exists, or not to if given negative. Otherwise, load existed or update it if exceeded positive life limit before now.
Sync flag to block the main thread while loading.