Get asset slots from any structural asset container.
Returns the assets from the v3 assets field. For backward compatibility with v2 servers, this function also handles the deprecated assets_required field if present.
assets
assets_required
An object containing canonical assets slots
Array of assets
const assets = getFormatAssets({ assets: [FormatAsset.image({ asset_id: 'hero', required: true })]}); Copy
const assets = getFormatAssets({ assets: [FormatAsset.image({ asset_id: 'hero', required: true })]});
Get asset slots from any structural asset container.
Returns the assets from the v3
assetsfield. For backward compatibility with v2 servers, this function also handles the deprecatedassets_requiredfield if present.