Class PathAliasTable
- Namespace
- TAssetBundle.Extensions
- Assembly
- TAssetBundle.Extensions.dll
ScriptableObject that declaratively configures alias prefixes and their target folders, and builds a PrefixAliasResolver wired to the active TAssetBundle catalog.
[CreateAssetMenu(menuName = "TAssetBundle/Path Alias Table", fileName = "PathAliasTable")]
public sealed class PathAliasTable : ScriptableObject
- Inheritance
-
ObjectScriptableObjectPathAliasTable
- Inherited Members
-
ScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Remarks
Each entry maps a prefix to one or more folders. A single folder means pure substitution; multiple folders become an ordered search path (first folder containing the asset wins — useful for DLC overrides).
Prefix format is entirely user-defined (for example @char/,
ui:, or any literal string).
Properties
Entries
public IReadOnlyList<PathAliasTable.Entry> Entries { get; }
Property Value
Methods
BuildResolver()
Builds a PrefixAliasResolver from the table. The resolver's AssetExists predicate is wired to ExistAsset(AssetRef) so multi-folder entries work automatically once the catalog is loaded.
public PrefixAliasResolver BuildResolver()