Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2019.4.X, 2020.3.X, 2021.3.X, 2022.1.X



Found in





Issue ID




Video's Alpha not transparent when built with WebGL



How to reproduce:
1. Open the user's attached project ""
2. Build and Run with WebGL

Expected result: Video's background is transparent
Actual result: Video's background is black

Reproducible with: 2021.2.0a3, 2021.2.11f1, 2022.1.0b6, 2022.2.0a3
Not reproducible with: 2019.4.35f1, 2020.3.28f1, 2021.2.0a2

Note: Not reproducible in Play Mode

  1. Resolution Note (fix version 2022.2):

    Fixed in: 2021.3.4f1, 2022.2.0a11 and above.

    The problem only appears when using linear colorspace. Alpha support had been disabled because of browser bugs in handling linearization of sRGBA content. The disabling has been restricted only to the browser platforms where this is known to be broken, which is Firefox and WebKit-based browsers. Chromium-based browsers are now back to supporting transparent videos in linear colorspace. Note that transparent videos in sRGBA colorspace are not impacted by this (they were and remain functional).

  2. Resolution Note (fix version 2022.1):

    Fixed in 2022.1.4f1

  3. Resolution Note (fix version 2021.3):

    Fixed in 2021.3.4f1

  4. Resolution Note (fix version 2020.3):

    Issue is not reproducible in this version similar to 2019.4.

    The reason being that support for linear space is not introduced in 2020.3 yet - Linear space support has removed the transparency on other versions.

    Since the linear support is not part of 2020.3, the transparency functions as expected.

    Using tip of the 2020.3 staging's change-set to mark the case resolved.

  5. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.40f1

Comments (2)

  1. unity_81XY9jlPyxljog

    Oct 05, 2023 07:17

    I agree. I noticed some improvement between an old version and Unity 2021.3.31f1, but 2021.3.31f still has a black background in WebGL for a .webm video while in the Editor it the background is transparent.

  2. Marks4

    Aug 30, 2023 15:17

    It still doesn't work for me. Webm video shows black background, even if I use gamma space. Unity 2021.3.29f1

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.