Table of Contents

Interface IPlatformAssetImporter<T>

Namespace
Icy.Assets
Assembly
IcyUI.dll

Represents an interface for objects that perform customized asset import for the platform-related asset reference.

public interface IPlatformAssetImporter<out T> : IAssetImporter<T>, IFormatReadChecker

Type Parameters

T

Requested type for import.

Inherited Members
Extension Methods

Remarks

This interface is used by asset adapters that perform loading underlying assets from the specified asset references.

Methods

LoadAsset(IPlatformAssetReference, string?)

Loads and wraps a platform asset using related adapter type.

T LoadAsset(IPlatformAssetReference assetReference, string? assetPath = null)

Parameters

assetReference IPlatformAssetReference

An instance of the asset reference to use for assets import.

assetPath string

Path to asset to import.

Returns

T

An instance of T for library to work with.

UnloadAsset(IPlatformAssetReference, string?)

Unloads related asset from the specified asset reference using its underlying platform type.

void UnloadAsset(IPlatformAssetReference assetReference, string? assetPath = null)

Parameters

assetReference IPlatformAssetReference

A reference to unload asset for.

assetPath string

Path to asset to unload.