Search Issue Tracker
Fixed in 2021.2.X
Votes
1
Found in
2019.2
2020.1
2020.1.0a19
Issue ID
1212805
Regression
No
[LowHangingFruit] Sprite's base color is incorrect at runtime when animation contains .Material._Base Color property
How to reproduce:
1. Open the attached '1212805.zip' project
2. Open 'New Scene' Scene
3. Select 'Circle' GamObject in the Hierarchy
4. Select Add Property -> Sprite Renderer -> Material._BaseColor in Animation window
5. Remove Material._Base Color.r and Material._Base Color.g properties
6. Set Material._Base Color.b to 1
7. Enter Play Mode
Expected result: Sprite is blue
Actual result: Sprite is black
Reproducible with: 2019.2.20f1(6.9.0, 6.9.2), 2019.3.0f6(7.1.1, 7.1.8), 2020.1.0a21(7.1.7, 7.1.8)
Could not test with: 2017.4.36f1 URP is not introduced, 2018.4.16f1 animation is not playing
Notes:
1. Video and project of reproduction attached in Edit
2. Also, reproducible with Sprite Renderer.Color property
3. Reproducible with linear and gamma color space
4. Reproducible on macOS, Windows
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (fix version 2021.2):
Can no longer remove a single property from a color. This is not supported and therefore no longer possible. This applies to Material._Base Color & Material._Color