Skip to content
Jigwright
HullForge docs

Get Asset Cost

What an asset actually costs: its own size plus every unique thing it drags in, walked over the hard dependency closure and deduplicated, with the heaviest contributors named. This is the number that answers "how big is this character", which the asset's own file size does not. Editor file sizes, not cooked sizes, and the result says so.

hf_get_asset_costRead only

Arguments

NameTypeDescription
assetreqstringAsset or package path.
include_softboolean
= false
Follow soft dependencies too. Off by default because a soft reference is not loaded with the asset, so including it answers a different question: not 'what loads with this' but 'what might this eventually reach', which on a well-connected project is most of it.
topinteger
= 15
How many of the heaviest contributors to name.

Nearby in References and dependencies: