Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

DownloadHandler.GetNativeData

Declaration

protected NativeArray<byte> GetNativeData();

Returns

NativeArray<byte> NativeArray providing access to downloaded data.

Description

Provides allocation-free access to the downloaded data as a NativeArray.

The data is owned by the download handler and memory is released when the download handler is disposed. The returned NativeArray is read-only.