TriLib
Search Results for

    Show / Hide Table of Contents

    Class ZipLoadCustomContextData

    Provides additional context data to the AssetLoaderContext when loading models from a .zip archive. This includes references to the ZipFile, its corresponding ZipEntry, the underlying Stream, and optional callbacks for errors and material-loading events.

    Inheritance
    object
    ZipLoadCustomContextData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TriLibCore
    Assembly: Assembly-CSharp.dll
    Syntax
    public class ZipLoadCustomContextData

    Fields

    OnError

    A reference to the original error callback passed during zip-based model loading, allowing custom handlers to be invoked if an error occurs at any point in the load process.

    Declaration
    public Action<IContextualizedError> OnError
    Field Value
    Type Description
    Action<IContextualizedError>

    OnMaterialsLoad

    A reference to the original material load callback passed during zip-based model loading. This is invoked on the main thread once all model materials, textures, and other resources have successfully loaded.

    Declaration
    public Action<AssetLoaderContext> OnMaterialsLoad
    Field Value
    Type Description
    Action<AssetLoaderContext>

    Stream

    The Stream used to access the contents of the .zip file. This is opened at the start of loading and may be closed automatically once loading is finished, depending on CloseStreamAutomatically.

    Declaration
    public Stream Stream
    Field Value
    Type Description
    Stream

    ZipEntry

    The individual ZipEntry that corresponds to the model file within the archive. May be null if searching for recognized model extensions or if multiple entries are processed.

    Declaration
    public ZipEntry ZipEntry
    Field Value
    Type Description
    ZipEntry

    ZipFile

    The ZipFile object representing the entire archive from which the model is extracted.

    Declaration
    public ZipFile ZipFile
    Field Value
    Type Description
    ZipFile

    Extension Methods

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