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

Animation

-

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

  1. Response avatar

    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

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.