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 Constructor

public DownloadHandlerTexture();

Description

Default constructor.

Convenience constructor. Assumes the value of readable is false. The Texture returned by texture will not have its texture data accessible from script.


public DownloadHandlerTexture(bool readable);

Parameters

readableValue to set for TextureImporter.isReadable.

Description

Constructor, allows TextureImporter.isReadable property to be set.

The value in readable will be used to set the TextureImporter.isReadable property when importing the downloaded texture data.