TriLib
Search Results for

    Show / Hide Table of Contents

    Class TextureLoaders

    Represents a class used to load Unity Textures.

    Inheritance
    object
    TextureLoaders
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: TriLibCore.Textures
    Assembly: TriLibCore.dll
    Syntax
    public static class TextureLoaders

    Methods

    ApplyTexture(TextureLoadingContext, bool)

    Declaration
    public static void ApplyTexture(TextureLoadingContext textureLoadingContext, bool procedural)
    Parameters
    Type Name Description
    TextureLoadingContext textureLoadingContext
    bool procedural

    CreateTexture(TextureLoadingContext)

    Declaration
    public static void CreateTexture(TextureLoadingContext textureLoadingContext)
    Parameters
    Type Name Description
    TextureLoadingContext textureLoadingContext

    CreateTextureInternal(TextureLoadingContext)

    Declaration
    public static void CreateTextureInternal(TextureLoadingContext textureLoadingContext)
    Parameters
    Type Name Description
    TextureLoadingContext textureLoadingContext

    FixNPOTTexture(TextureLoadingContext)

    Declaration
    public static void FixNPOTTexture(TextureLoadingContext textureLoadingContext)
    Parameters
    Type Name Description
    TextureLoadingContext textureLoadingContext

    FixNormalMap(TextureLoadingContext)

    Declaration
    public static void FixNormalMap(TextureLoadingContext textureLoadingContext)
    Parameters
    Type Name Description
    TextureLoadingContext textureLoadingContext

    LoadTexture(TextureLoadingContext)

    Loads a new Unity Texture using the given context data.

    Declaration
    public static bool LoadTexture(TextureLoadingContext textureLoadingContext)
    Parameters
    Type Name Description
    TextureLoadingContext textureLoadingContext

    Context containing Data from the Original and the Unity Texture.

    Returns
    Type Description
    bool

    PostProcessTexture(TextureLoadingContext)

    Declaration
    public static bool PostProcessTexture(TextureLoadingContext textureLoadingContext)
    Parameters
    Type Name Description
    TextureLoadingContext textureLoadingContext
    Returns
    Type Description
    bool

    ResolveFilename(ITexture, AssetLoaderContext)

    Tries to resolve the texture filename using the model base path and the original texture short filename, and creates a FileStream from it.

    Declaration
    public static void ResolveFilename(this ITexture texture, AssetLoaderContext assetLoaderContext)
    Parameters
    Type Name Description
    ITexture texture
    AssetLoaderContext assetLoaderContext

    ScanForAlphaPixels(TextureLoadingContext)

    Declaration
    public static void ScanForAlphaPixels(TextureLoadingContext textureLoadingContext)
    Parameters
    Type Name Description
    TextureLoadingContext textureLoadingContext

    WriteToFile(Stream, string, int, FileMode, FileAccess, FileShare)

    Declaration
    public static void WriteToFile(Stream stream, string destinationFile, int bufferSize = 4096, FileMode mode = FileMode.OpenOrCreate, FileAccess access = FileAccess.ReadWrite, FileShare share = FileShare.ReadWrite)
    Parameters
    Type Name Description
    Stream stream
    string destinationFile
    int bufferSize
    FileMode mode
    FileAccess access
    FileShare share
    In this article
    Back to top Generated by DocFX