TriLib
Search Results for

    Show / Hide Table of Contents

    Class FilePickerExternalDataMapper

    Provides an external data mapping strategy for file picker–based workflows. This mapper searches through a collection of file items (each with an associated stream) to find one whose short filename matches the given originalFilename. If a match is found, the file’s stream is returned, along with its full name as the final path.

    Inheritance
    object
    Object
    ScriptableObject
    ExternalDataMapper
    FilePickerExternalDataMapper
    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 FilePickerExternalDataMapper : 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