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(int width, int height, TextureFormat format, int mipCount);
def SparseTexture(width as int, height as int, format as TextureFormat, mipCount as int)
SparseTexture(width: int, height: int, format: TextureFormat, mipCount: int, linear: bool)
SparseTexture(int width, int height, TextureFormat format, int mipCount, bool linear);
def SparseTexture(width as int, height as int, format as TextureFormat, mipCount as int, linear as 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.