Table of Contents

Class UnityAssetService

Namespace
Luny.Unity.Services
Assembly
Luny.Unity.dll
public sealed class UnityAssetService : LunyAssetServiceBase, ILunyAssetService, ILunyEngineService
Inheritance
object
UnityAssetService
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

path LunyAssetPath

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

path LunyAssetPath

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

asset ILunyAsset