GetNativeData()
Provides allocation-free access to the downloaded data as a NativeArray.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
protected virtual NativeArray<byte> GetNativeData()
Returns
Type | Description |
|---|---|
| NativeArray<byte> | NativeArray providing access to downloaded data. |
Remarks
The data is owned by the download handler and memory is released when the download handler is disposed. The returned NativeArray is read-only.