Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

SparseTexture.SparseTexture

SparseTexture(width: int, height: int, format: TextureFormat, mipCount: int)
SparseTexture(width: int, height: int, format: TextureFormat, mipCount: int, linear: bool)

Parameters

widthTexture width in pixels.
heightTexture height in pixels.
formatTexture format.
mipCountMipmap count. Pass -1 to create full mipmap chain.
linearWhether texture data will be in linear or sRGB color space (default is sRGB).

Description

Create a sparse texture.