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
- "Sub Mesh Mask" field in VFX Graph has no padding
- Source Generation with GeneratePropertyBag fails when using reserved keywords as variable names with @ prefix
- Prismatic ArticulationBody moves in opposite direction when using targetVelocity
- Shader Graph skybox material is rendered inccorrectly in builds when "Allow Material Override" or "Cast Shadows" are enabled and the "Deferred" Rendering Path is used
- Object motion is affected by incorrectly added rotation motion when importing animations
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