Method DownloadArtifact
DownloadArtifact<TArtifactType>(Artifact<TArtifactType>, Action<object, string>)
Download texture image from the Cloud
Declaration
public static UnityWebRequestAsyncOperation DownloadArtifact<TArtifactType>(Artifact<TArtifactType> artifact, Action<object, string> onDone)
Parameters
Type | Name | Description |
---|---|---|
Artifact<TArtifactType> | artifact | The typed artifact identifier to request |
Action<object, string> | onDone | Callback called when results are received. Callback parameters (Texture2D, byte[], string) represent received Texture2D object, it's original byte stream as PNG file and error string. In case error occured error string is non-null and other parameters are null |
Returns
Type | Description |
---|---|
UnityWebRequestAsyncOperation | The the reference to the async operation this generates so that it may be cancelled |
Type Parameters
Name | Description |
---|---|
TArtifactType |