Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved Disk space required to download and store bundles

Discussion in 'Addressables' started by Bas-Smit, Jan 10, 2023.

  1. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    272
    Our game downloads required bundles on startup, and I would like to show a message if the device has insufficient free disk space. I can query the size of the download with Addressables.GetDownloadSizeAsync, but I assume this is the compressed size and downloaded bundles are stored uncompressed by default. The problem is complicated further as bundles to download could replace existing bundles which are hopefully deleted before downloading their replacements.

    Is there a way to query how much disk space will be required for the entire process of downloading and storing bundles?

    And is it possible to determine downloading bundles failed due to lack of disk space?
     
    Last edited: Jan 10, 2023
  2. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    272