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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.