TriLib
Search Results for

    Show / Hide Table of Contents

    Class TextureDataContext

    Contains data and state information for loading and processing a texture during a TriLib model import. This context stores both the original source texture data and the resulting Unity texture, along with relevant metadata.

    Inheritance
    object
    TextureDataContext
    Implements
    IAssetLoaderContext
    IAwaitable
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: TriLibCore
    Assembly: TriLibCore.dll
    Syntax
    public class TextureDataContext : IAssetLoaderContext, IAwaitable

    Constructors

    TextureDataContext()

    Declaration
    public TextureDataContext()

    Fields

    Components

    The number of color components in the source image.

    Declaration
    public int Components
    Field Value
    Type Description
    int

    HasAlpha

    Indicates whether the source texture uses its alpha channel.

    Declaration
    public bool HasAlpha
    Field Value
    Type Description
    bool

    Height

    The height of the texture (in pixels).

    Declaration
    public int Height
    Field Value
    Type Description
    int

    OriginalUnityTexture

    The Unity texture created from the source data.

    Declaration
    public Texture OriginalUnityTexture
    Field Value
    Type Description
    Texture

    Stream

    The original data stream for the texture.

    Declaration
    public Stream Stream
    Field Value
    Type Description
    Stream

    Texture

    The original texture as defined by the source model.

    Declaration
    public ITexture Texture
    Field Value
    Type Description
    ITexture

    TextureCreated

    Indicates whether the Unity texture has been created.

    Declaration
    public bool TextureCreated
    Field Value
    Type Description
    bool

    TextureLoaded

    Indicates whether the Unity texture has been successfully loaded.

    Declaration
    public bool TextureLoaded
    Field Value
    Type Description
    bool

    Width

    The width of the texture (in pixels).

    Declaration
    public int Width
    Field Value
    Type Description
    int

    Properties

    Completed

    Gets or sets a value indicating whether the texture loading process is complete.

    Declaration
    public bool Completed { get; set; }
    Property Value
    Type Description
    bool

    Context

    Gets or sets the AssetLoaderContext that contains the overall model loading data.

    Declaration
    public AssetLoaderContext Context { get; set; }
    Property Value
    Type Description
    AssetLoaderContext

    Implements

    IAssetLoaderContext
    IAwaitable

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    In this article
    Back to top Generated by DocFX