Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

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

readable Value 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.