Interface ILunyAssetService
Engine-agnostic Asset management service.
public interface ILunyAssetService : ILunyEngineService
Expand Details ...
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
| Type | Name | Description |
|---|---|---|
path |
The 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
| Type | Name | Description |
|---|---|---|
id |
The internal asset ID. |