TriLib 2.2.8
|
Represents a context used to process Model Textures. More...
Public Member Functions | |
TextureLoadingContext (bool createTextureData=true) | |
The TextureLoadingContext used to create/load/process the texture. | |
Public Attributes | |
TextureType | TextureType |
Texture Type. | |
TextureDataContext | TextureDataContext |
The TextureDataContext used to load this texture. | |
MaterialMapperContext | MaterialMapperContext |
The MaterialMapperContext used to load this texture. | |
bool | TextureProcessed |
Indicates whether the Texture has been processed. | |
int | CreationBytesPerPixel |
int | CreationBitsPerChannel |
The bytes per pixel from the original image data. | |
Properties | |
bool | Completed [get, set] |
Indicates whether this Awaitable is completed. | |
AssetLoaderContext | Context [get, set] |
The Asset Loader Context reference. Asset Loader Context contains the Model loading data. | |
ITexture | Texture [get, set] |
Texture | UnityTexture [get, set] |
Stream | Stream [get, set] |
bool | Has8BPC [get] |
bool | Has16BPC [get] |
NativeArray< ushort > | Data16 [get] |
The 16-bits texture raw data when the texture has a RGBA16 format. | |
NativeArray< byte > | Data [get] |
The 8-bits texture raw data when the texture has a RGBA8 format. | |
bool | HasAlpha [get, set] |
Does the texture contains alpha channel? | |
bool | TextureLoaded [get, set] |
Indicates whether the texture was loaded. | |
int | Width [get, set] |
The texture width. | |
int | Height [get, set] |
The texture height. | |
int | Components [get, set] |
The texture color components count. (3 for RGB, 4 for RGBA) | |
Texture | OriginalUnityTexture [get, set] |
The original Unity texture generated from this texture. | |
bool | TextureCreated [get, set] |
Indicates whether the texture was created. | |
Properties inherited from TriLibCore.Interfaces.IAssetLoaderContext | |
AssetLoaderContext | Context [get] |
Gets/Sets the Asset Loader Context reference. Asset Loader Context contains the Model loading data. | |
Properties inherited from TriLibCore.Interfaces.IAwaitable | |
bool | Completed [get, set] |
Indicates whether this Awaitable is completed. | |
Represents a context used to process Model Textures.
TriLibCore.TextureLoadingContext.TextureLoadingContext | ( | bool | createTextureData = true | ) |
The TextureLoadingContext used to create/load/process the texture.
createTextureData | Pass true when the internal texture data representation has to be created. |
|
getset |
Indicates whether this Awaitable is completed.
Implements TriLibCore.Interfaces.IAwaitable.
|
getset |
The Asset Loader Context reference. Asset Loader Context contains the Model loading data.
Implements TriLibCore.Interfaces.IAssetLoaderContext.