Interface ILunyAssetService
Engine-agnostic Asset management service.
public interface ILunyAssetService : ILunyEngineService
Remarks
IMPORTANT: Implementations must inherit from both the ILunyService interface and its corresponding LunyServiceBase class!
Methods
Load<T>(LunyAssetPath)
Loads an asset of type T by its Luny path.
T Load<T>(LunyAssetPath path) where T : class, ILunyAsset
Parameters
pathLunyAssetPathThe agnostic path to the asset.
Returns
- T
The loaded asset bridge, or a "Missing Asset" placeholder if loading fails.
Type Parameters
TThe bridge interface type of the asset (e.g., ILunyPrefab).
Unload(LunyAssetId)
Unloads an asset by its internal ID.
void Unload(LunyAssetId id)
Parameters
idLunyAssetIdThe internal asset ID.