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
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
- Graphics Compositor breaks Unity rendering when the "Output Camera" is changed to a scene Camera and one Camera SubLayer is active
- The Editor freezes on RenderGraphViewer.Repaint when entering too many characters in search fields without character limits
- Adding a new SubLayer in Graphics Compositor renders BaseLayer darker and makes it flicker
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.