TriLib Exporter
Search Results for

    Show / Hide Table of Contents

    Class Texture

    Represents a texture resource with associated metadata, including dimensions and color data, tailored for export.

    Inheritance
    object
    ObjectBase
    Texture
    Inherited Members
    ObjectBase.Name
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    In this article
    Back to top Generated by DocFX