Anyway to estimate size of Asset in Asset Bundle

Hey all,

I’m just wondering if there is any good way to get an estimate for the size of an asset in an asset bundle build by the Scriptable Build Pipeline? We want to use this for our reporting system so we can work out what assets are bloating the build.

I know how to get all the ObjectIdentifiers that make up an asset and i can work out which bundle they have been written to, but it be amazing if i could work out how much of the bundle is taken up by that object.

Is there a way to do this from any of the data that is provided back from Scriptable Build Pipeline? Or perhaps is there a way to look at the asset bundle after it has been build and get the information?

Cheers,
Chris

Ok i actually managed to work this out! For anyone else, the addressables package lets you generate a build layout report (Diagnostic tools | Addressables | 1.16.19)

The report is done in a custom build task in the addressables package. I manged to use that a base to update the code for our own reporting

1 Like