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.

DownloadHandlerTexture.GetData

protected byte[] GetData();

Returns

byte[] A copy of the downloaded data.

Description

Called by DownloadHandler.data. Returns a copy of the downloaded image data as raw bytes.

Note: Each call to this method allocates a new byte array.