Static function
Moderate
Assets.GetAssetPath
Gets the file path of an asset
Syntax
Assets.GetAssetPath(asset, asset_type)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
asset
|
string | — | The asset reference in the format <code>asset-pack::AssetKey</code> |
asset_type
|
AssetType | — | The Asset Type |
Returns
- string The file path defined in the Assets.toml