Interface IAssetPathResolver
- Namespace
- TAssetBundle.Extensions
- Assembly
- TAssetBundle.Extensions.dll
Resolves an input asset path to its canonical full path. Used by AssetManager to translate user-provided alias paths into catalog paths before any internal lookup or tracking.
public interface IAssetPathResolver
Remarks
Resolvers must be idempotent for canonical inputs: calling Resolve on an already-canonical path should return the same path. Implementations should return the input unchanged when no alias matches.
Methods
InvalidateCache()
Invalidates any internal resolution cache. Called by AssetManager automatically after the TAssetBundle catalog is (re)loaded. Stateless implementations can leave the body empty.
void InvalidateCache()
Resolve(string)
Resolves the input path to a canonical full asset path.
string Resolve(string inputPath)
Parameters
inputPathstringUser-provided path, possibly containing an alias prefix.
Returns
- string
Canonical full asset path. Returns the input unchanged if no alias matches.