nanos world API Reference Unofficial documentation
Static function Shared Moderate

Assets.GetAssetPath

Gets the file path of an asset

Syntax

Lua
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