uPano  v3.1
InfinityCode.uPano.Requests.WWWRequest Class Reference

Request wrapper of WWW, which works in edit and play mode More...

Inheritance diagram for InfinityCode.uPano.Requests.WWWRequest:
InfinityCode.uPano.Requests.StatusRequest< WWWRequest > InfinityCode.uPano.Requests.TextureRequest

Public Member Functions

 WWWRequest (string url)
 Makes a new GET request by url More...
 

Public Attributes

readonly string url
 URL of request More...
 
IEnumerator routine
 Request routine More...
 
- Public Attributes inherited from InfinityCode.uPano.Requests.StatusRequest< WWWRequest >
Action< T > OnSuccess
 Action that occurs when the request is successful More...
 
Action< T > OnError
 Action that occurs when the request is failed More...
 

Static Public Attributes

static Func< string, string > OnPrepareURL
 Hook to intercept and modify the URL of any request More...
 

Properties

byte[]? bytes [get]
 Returns the contents of the fetched web page as a byte array More...
 
bool isDone [get]
 Gets whether the request is completed More...
 
override bool keepWaiting [get]
 Indicates if coroutine should be kept suspended More...
 
string? text [get]
 Returns the contents of the fetched web page as a string More...
 
virtual Texture2D texture [get]
 Returns a Texture2D generated from the downloaded data More...
 
- Properties inherited from InfinityCode.uPano.Requests.StatusRequest< WWWRequest >
abstract bool hasErrors [get]
 Gets whether the request contains an error More...
 
abstract string error [get]
 Gets an error of the request More...
 

Detailed Description

Request wrapper of WWW, which works in edit and play mode

Constructor & Destructor Documentation

◆ WWWRequest()

InfinityCode.uPano.Requests.WWWRequest.WWWRequest ( string  url)

Makes a new GET request by url

Parameters
urlURL

Member Data Documentation

◆ OnPrepareURL

Func<string, string> InfinityCode.uPano.Requests.WWWRequest.OnPrepareURL
static

Hook to intercept and modify the URL of any request

◆ routine

IEnumerator InfinityCode.uPano.Requests.WWWRequest.routine

Request routine

◆ url

readonly string InfinityCode.uPano.Requests.WWWRequest.url

URL of request

Property Documentation

◆ bytes

byte []? InfinityCode.uPano.Requests.WWWRequest.bytes
get

Returns the contents of the fetched web page as a byte array

◆ isDone

bool InfinityCode.uPano.Requests.WWWRequest.isDone
get

Gets whether the request is completed

◆ keepWaiting

override bool InfinityCode.uPano.Requests.WWWRequest.keepWaiting
get

Indicates if coroutine should be kept suspended

◆ text

string? InfinityCode.uPano.Requests.WWWRequest.text
get

Returns the contents of the fetched web page as a string

◆ texture

virtual Texture2D InfinityCode.uPano.Requests.WWWRequest.texture
get

Returns a Texture2D generated from the downloaded data