LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

DownloadHandlerBuffer.GetData

protected byte[] GetData();

Returns

byte[] A copy of the data which has been downloaded.

Description

Returns a copy of the contents of the native-memory data buffer as a byte array.

Called by DownloadHandler.data. Allocates a new managed byte array for each call.