Search Issue Tracker
By Design
Votes
1
Found in [Package]
13.1.5
Issue ID
1390509
Regression
No
Sprite Renderer doesn't change colors in runtime
Reproduction steps:
1. Open "Case_1390509.7z"
2. Open Scene "Bug" from the "Scenes" folder
3. Enter Play Mode
4. Select the "pfBeer" GameObject from the Hierarchy window
5. Select the "Face" child GameObject under "pfBeer" and change the color in the Sprite Renderer Component
Expected result: Color will change
Actual result: Color won't change
Reproducible with: 10.8.1 (2020.3.27f1), 12.1.4 (2021.2.9f1), 13.1.5 (2022.1.0b5), 13.1.2 (2022.2.0a2)
Could not test with: 2019.4.36f1 (Project Material Issues)
Note:
- This doesn't happen when changing the color of the sprite in "pfTremor"
-
ImreAM
Feb 01, 2022 08:16
I finally found out what is the issue. I do not think it is a bug afterall or maybe it is. I have an animation controller that has different animations on it. Only one of the animations "Death" changes sprite colors. If I remove it then everything works fine and if I add it again then i can not change colors again. It is weird that even if the animation is not running at all it still forces the original colors you started with.
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
The Object pfBeer has an Animation Controller with Animation Clip (Brewer_Move etc..) that animates child object 'Face' Sprite Renderer Color to always White. Hence any changes done to SpriteRenderer on Playmode will be over-ridden by the Animation Controller's change to Color of SpriteRenderer.
This is as expected. Nothing to fix here.