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
- Test Runner’s vertical scrollbar overlaps with the up and down arrows and upper toolbar tabs when the window is minimized
- The Input Field view is not updated when deleting lines of text
- The scrollbar does not respect empty lines in the Input Field
- “Texture Atlas Viewer“ button text overlaps another button when the UI Toolkit Debugger is narrowed
- Thresholds are no longer automatically calculated after deleting Motion fields in Blendtrees
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