Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2019.4.X, 2020.3.X, 2021.2.X

Votes

21

Found in

2020.3

2021.2.1f1

2022.1.0a13

Issue ID

1379817

Regression

Yes

GameObject's colors are rendered differently in the iOS build compared to the colors in the Editor

Metal

-

How to reproduce:
1. Open the attached project "Testdawn.zip"
2. Go to the Build Settings (FIle>Build Settings)
3. Select iOS and build the project
4. Open the project in Xcode and build for the device
5. Observe the colors in the project

Expected result: GameObjects colors are rendered the same as in the Editor
Actual result: GameObjects colors are rendered with different colors

Reproducible with: 2021.2.1f1, 2022.1.0a13
Not reproducible with: 2021.2.0f1, 2022.1.0a0, 2022.1.0a12
Could not test with: 2019.4.32f1, 2020.3.21f1, 2021.1.28f1 (Errors: "Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Editor/TMP_PackageUtilities.cs(586,84): error CS0103: The name 'VersionControlSettings' does not exist in the current context")

Notes:
- Bug is not reproducible in the Editor and Mac Standalone Build
- Bug reproduces when the device is set to "Light mode" and does not reproduce when it is set to "Dark mode"

Reproduced with:
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS

Not reproduced with:
VLNQA00392 - iPad (9th generation), 15.0 iOS

  1. Resolution Note (fix version 2022.1):

    Fixed in: 2022.2.0a1

  2. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0b5

  3. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.8f1

  4. Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.26f1

  5. Resolution Note (fix version 2019.4):

    Fixed in: 2019.4.35f1

Comments (16)

  1. AdrienMgm

    Dec 07, 2021 16:58

    Experienced this with 2019.4.24f1. All the UI (Image Component with Color or Image PNG) of our game is with different colors when device is in Light Mode, and normal colors when in Dark Mode with iOS 15

  2. aromana

    Dec 02, 2021 05:03

    I've found a workaround that doesn't involve editing the plist file — if you are using URP, you can _enable_ HDR in the URP settings to fix the issue. I am sure there's some nonzero performance overhead to this, but so far it hasn't been noticeable.

    I filed a bug for this here: https://fogbugz.unity3d.com/default.asp?1384814_1dm6l909d6ademck

  3. TomTheMan59

    Dec 01, 2021 13:44

    Please fix this asap!!!!

  4. snorrsi

    Dec 01, 2021 09:50

    Experienced the same from 2020.3.22f1 .. please add that to list of affected versions. 2020.3.23f1 has also this issue.

  5. Buzzrick_Runaway

    Nov 21, 2021 20:46

    I've also reported this issue as case 1381781 (https://fogbugz.unity3d.com/default.asp?1381781_30ohvm3utos67ain) (now closed as duplicate).
    I'm just throwing a couple of comments in here as being possibly relevant for other affected parties.

    We found that turning the iOS device "Display & Brightness" setting to "Dark Mode" made the rendering issue go away. It could be useful for other affected parties to try this to confirm it also fixes the issue above.

    This obviously isn't a viable fix for consumers, so we also discovered that if we edit the iOS info.plist file for the application and add a "UIUserInterfaceStyle" = "Dark" setting, the issue goes away (although some UI elements such as gamecenter renders as black on a light mode device).

  6. dtootill

    Nov 18, 2021 15:25

    I've reported this issue separately as case 1380531 (https://fogbugz.unity3d.com/default.asp?1380531_qgj9sfajfojbs8r1). It appears to have been introduced in Unity 2020.3.22f1

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.