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.
Inherited Members
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 |
Returns
Type | Description |
---|---|
Stream | A Stream to the resource if located successfully; otherwise,
|