Table of Contents

Interface ILunyAssetService

Namespace
Luny.Engine.Services
Assembly
Luny.dll

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

path LunyAssetPath

The agnostic path to the asset.

Returns

T

The loaded asset bridge, or a "Missing Asset" placeholder if loading fails.

Type Parameters

T

The bridge interface type of the asset (e.g., ILunyPrefab).

Unload(LunyAssetId)

Unloads an asset by its internal ID.

void Unload(LunyAssetId id)

Parameters

id LunyAssetId

The internal asset ID.