Delegate LoadTextureCallback
Response callback for for async texture load operations
Namespace: Unity.MARS.Data
Syntax
public delegate void LoadTextureCallback(bool success, long responseCode, Texture2D texture, byte[] payload);
Parameters
Type | Name | Description |
---|---|---|
Boolean | success | True if the request succeeded |
Int64 | responseCode | The HTTP response code |
Texture2D | texture | The response payload as a Texture2D, or null if the response failed or the payload is not a valid image |
Byte[] | payload | The raw response payload as a byte[], or the error string as a byte[] |