Search Unity

Anyway to estimate size of Asset in Asset Bundle

Discussion in 'Asset Bundles' started by IN_Chris, Feb 5, 2021.

  1. IN_Chris

    IN_Chris

    Joined:
    Apr 17, 2018
    Posts:
    7
    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
     
  2. IN_Chris

    IN_Chris

    Joined:
    Apr 17, 2018
    Posts:
    7
    lang_fox likes this.