TriLib
Search Results for

    Show / Hide Table of Contents

    Class ZipFileExternalDataMapper

    Provides an external data mapping strategy for extracting data from Zip files. This mapper searches through the entries of a Zip file (provided via custom context data) for an entry whose short filename matches the specified originalFilename. If a match is found, it opens a stream for that Zip entry.

    Inheritance
    object
    Object
    ScriptableObject
    ExternalDataMapper
    ZipFileExternalDataMapper
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: TriLibCore.Mappers
    Assembly: Assembly-CSharp.dll
    Syntax
    public class ZipFileExternalDataMapper : ExternalDataMapper

    Methods

    Map(AssetLoaderContext, string, out string)

    Attempts to locate and open the data resource corresponding to originalFilename in the context of a TriLib model load. Implementers can check the file system, network sources, or other data repositories to resolve the file path.

    Declaration
    public override Stream Map(AssetLoaderContext assetLoaderContext, string originalFilename, out string finalPath)
    Parameters
    Type Name Description
    AssetLoaderContext assetLoaderContext

    The AssetLoaderContext containing loading settings, callbacks, and references to the model’s assets and hierarchy.

    string originalFilename

    The name or partial path of the resource as referenced in the source file (e.g., a texture filename or other embedded data pointer).

    string finalPath

    Outputs the resolved, absolute path to the located resource. Returns null if the resource could not be found.

    Returns
    Type Description
    Stream

    A Stream to the resource if located successfully; otherwise, null if the file could not be found or opened.

    Overrides
    ExternalDataMapper.Map(AssetLoaderContext, string, out string)

    Extension Methods

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