C# Class UnityEngine.SparseTexture

Class for handling Sparse Textures.

Inheritance: Texture
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
SparseTexture ( int width, int height, TextureFormat format, int mipCount ) : System

Create a sparse texture.

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

Create a sparse texture.

Private Methods

Method Description
Internal_Create ( [ mono, int width, int height, TextureFormat format, int mipCount, bool linear ) : void
UnloadTile ( int tileX, int tileY, int miplevel ) : void
UpdateTile ( int tileX, int tileY, int miplevel, Color32 data ) : void
UpdateTileRaw ( int tileX, int tileY, int miplevel, byte data ) : void

Method Details

SparseTexture() public method

Create a sparse texture.

public SparseTexture ( int width, int height, TextureFormat format, int mipCount ) : System
width int Texture width in pixels.
height int Texture height in pixels.
format TextureFormat Texture format.
mipCount int Mipmap count. Pass -1 to create full mipmap chain.
return System

SparseTexture() public method

Create a sparse texture.

public SparseTexture ( int width, int height, TextureFormat format, int mipCount, bool linear ) : System
width int Texture width in pixels.
height int Texture height in pixels.
format TextureFormat Texture format.
mipCount int Mipmap count. Pass -1 to create full mipmap chain.
linear bool Whether texture data will be in linear or sRGB color space (default is sRGB).
return System