C# Class UnityEngine.SparseTexture

Class for handling Sparse Textures.

Inheritance: Texture
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat System

SparseTexture() public méthode

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).
Résultat System