Interface IPlatformAssetReference
- Namespace
- Icy.Assets
- Assembly
- IcyUI.dll
Represents a reference to the engine-specified assets section that could be read with engine API.
public interface IPlatformAssetReference
- Extension Methods
Methods
Load<T>(string?)
Loads an asset with the specified relative path.
T Load<T>(string? assetPath = null)
Parameters
assetPathstringRelative path to the asset to load from this section.
Returns
- T
An instance of the loaded asset.
Type Parameters
TType of the asset to load.
Unload(string?)
Unloads an asset with the specified relative path.
void Unload(string? assetPath = null)
Parameters
assetPathstringRelative path to the asset to unload from this section.