Table of Contents

Class UnityAssetService

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

Type Name Description
LunyAssetPath
path

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

Type Name Description
LunyAssetPath
path

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

Type Name Description
ILunyAsset
asset