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"
Comments (1)
-
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
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.