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 onlyArguments
| Name | Type | Description |
|---|---|---|
assetreq | string | Asset or package path. |
include_soft | boolean = 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. |
top | integer = 15 | How many of the heaviest contributors to name. |
Related tools
Nearby in References and dependencies: