Class UnityAssetService
public sealed class UnityAssetService : LunyAssetServiceBase, ILunyAssetService, ILunyEngineService
- Inheritance
-
objectUnityAssetService
- Implements
- Inherited Members
Constructors
UnityAssetService()
public UnityAssetService()
Methods
GetExtensionMapping()
Provides the extension mapping for different asset types.
protected override IReadOnlyDictionary<Type, string[]> GetExtensionMapping()
Returns
- IReadOnlyDictionary<Type, string[]>
GetPlaceholder<T>(LunyAssetPath)
Returns a "Missing Asset" placeholder of the requested type.
protected override T GetPlaceholder<T>(LunyAssetPath path) where T : class, ILunyAsset
Parameters
pathLunyAssetPath
Returns
- T
Type Parameters
T
LoadAsset<T>(LunyAssetPath)
Engine-native implementation of tiered asset lookup.
protected override T LoadAsset<T>(LunyAssetPath path) where T : class, ILunyAsset
Parameters
pathLunyAssetPath
Returns
- T
Type Parameters
T
OnServiceInitialize()
protected override void OnServiceInitialize()
UnloadAsset(ILunyAsset)
Engine-native implementation of asset unloading.
protected override void UnloadAsset(ILunyAsset asset)
Parameters
assetILunyAsset