Class Texture
Represents a texture resource with associated metadata, including dimensions and color data, tailored for export.
Inherited Members
Namespace: TriLibExporter.Objects
Assembly: Assembly-CSharp.dll
Syntax
public class Texture : ObjectBase
Constructors
Texture(AssetWriterContext, Texture, Color32[], string)
Initializes a new instance of the Texture class.
Declaration
public Texture(AssetWriterContext assetWriterContext, Texture texture, Color32[] data, string postfix = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetWriterContext | assetWriterContext | The asset writer context associated with this texture. |
| Texture | texture | The Unity Texture to represent. |
| Color32[] | data | The color data of the texture. |
| string | postfix | An optional postfix to append to the texture name. |
Fields
Data
The color data of the texture.
Declaration
public Color32[] Data
Field Value
| Type | Description |
|---|---|
| Color32[] |
Height
The height of the texture in pixels.
Declaration
public int Height
Field Value
| Type | Description |
|---|---|
| int |
Path
The file path of the texture.
Declaration
public string Path
Field Value
| Type | Description |
|---|---|
| string |
Width
The width of the texture in pixels.
Declaration
public int Width
Field Value
| Type | Description |
|---|---|
| int |