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
TRequested 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
assetReferenceIPlatformAssetReferenceAn instance of the asset reference to use for assets import.
assetPathstringPath to asset to import.
Returns
- T
An instance of
Tfor 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
assetReferenceIPlatformAssetReferenceA reference to unload asset for.
assetPathstringPath to asset to unload.