Method CreateFromData
CreateFromData(byte[], bool)
Takes binary data and will attempt to deserialize it into its concrete Unity representation. Concrete implementations will throw exceptions or handle malformed incoming data
Declaration
protected override Texture2D CreateFromData(byte[] data, bool updateCache)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | data | Binary data from backend, file, etc, to be deserialized |
| bool | updateCache | When true update the local system's cached state of the artifact. false skips the update |
Returns
| Type | Description |
|---|---|
| Texture2D |