Search Issue Tracker

Fixed in 2023.1.X

Fixed in 2021.3.X, 2022.2.X

Duplicate in 2022.1.X

Votes

40

Found in

2021.1.0a8

2021.2

2021.2.10f1

2021.3

2022.1

2022.2

Issue ID

1412557

Regression

Yes

Textures are not compressed when building bundles

Asset Bundles

-

How to reproduce:
1. Open users attached project
2. Open Edit > Preferences > Asset Pipeline and enable Compress Assets on Import
3. Click Build > AssetBundles - active target
4. Observe the png asset in the Assets folder (shown size is 5.3 MB)
5. Disable Compress Assets on Import
6. Click Build > AssetBundles - active target
7. Open Editor.log and locate "Player size statistics"

Expected result: Textures size is 5.3 MB
Actual result: Textures size is 21.3 MB

Reproducible with: 2021.1.0a8, 2021.2.16f1, 2021.3.0f1, 2022.1.0b14, 2022.2.0a10
Not reproducible with: 2019.4.36f1, 2020.3.32f1, 2021.1.0a7

Note: In Unity 2021.1.0a8 and below the Compress Assets on Import option is in General and not in Asset Pipeline

  1. Resolution Note (fix version 2023.1):

    Fixed in: 2023.1.0a1

  2. Resolution Note (fix version 2021.3):

    Verified fixed on 2021.3.6f1

Comments (10)

  1. Dasp

    Nov 03, 2022 09:52

    Is this going to be implemented in 2022.1?

  2. Vitaly_Unity

    Jul 22, 2022 12:50

    Unity is migrating from Fogbugz to Jira and that is why currently we have a bit of a mess with how backports are represented on Issue Tracker. Hopefully that will be fixed soon.

    Regarding this particular case - I tried to fix some of the backports information manually, it should be updated here soon. But the current status is:
    2020.3 - looks like this issue doesn't present there, so I deleted it from affected versions (if you see this issue happening for you on 2020.3 - please ping me and we will make an additional backport)
    2021.3 - backport landed in 2021.3.6f1
    2022.1 and 2022.2 - backports are in progress
    2023.1 - fix landed in 2023.1.0a1

  3. KaranShah12

    Jul 19, 2022 06:24

    what does "Duplicate in 2020.3.X, 2021.3.X, 2022.1.X" mean?

    Is it fixed in 2022.2 and these versions mentioned above?

  4. Nyankoooo

    Jun 17, 2022 14:31

    Was this fixed in 2020.3.36f1? It was still listed as a Known Issue for 2020.3.35f1, but then vanished with the latest changelogs.

  5. MADouke

    Jun 15, 2022 08:40

    It's for those who have an urgent need to.

    "Compress assets on import."
    If this option is always on, then I think this problem can be ignored.

  6. SVC-Games

    Jun 13, 2022 17:47

    It seems to happen with Wav files too. I've tried with some sound effects and the resulting size of the bundle is the same as the sum of it's contents.

    An older bundle made back in january was way smaller than the sum of it's contents.

    So it doesn't seem like a texture compression problem, and more like asset bundle compression in general.

    As mentioned, it's a big problem for all LTS versions.

  7. EP-Toushirou

    Jun 09, 2022 07:50

    Dose 'duplicate' means a similar issue fixed : Asset - Database: Texture size increased on first build when 'Compress Textures/Assets on Import' is enabled (1397965) ?
    Or it means Won't Fix?

  8. JolanHuyvaertDieKeure

    Jun 07, 2022 12:48

    I agree. We need this fixed asap in 2021.3. Each bundle with textures in our current project increases significantly in size because of this issue. Simply unacceptable for an LTS.

  9. jannysice

    Jun 01, 2022 13:13

    This essentially makes these unity versions not viable for production in our case.
    Multiple LTS versions are affected which are supposed to be stable and production ready.
    There seems to be no workaround which means that we are stuck with 2019 LTS for the time being. I don't understand why this is not being fast tracked. It has been unresolved for multiple weeks. It essentially makes the new unity versions unusable for every game studio that is developing mobile games where download size matters.
    Please fix this ASAP.

  10. tbellefleur

    May 30, 2022 19:45

    Does anyone know the scope of this issue? As in, does it completely break texture compression in asset bundles, or only for certain source types and in certain situations? We have a project that is going to need to upgrade imminently to at least 2020.3.35f1 but it is quite large and contains a lot of textures.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.