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
- Shader warnings are thrown after building High Definition 3D template
- "EndLayoutGroup: BeginLayoutGroup must be called first" error is thrown when changing Shader Precision Model from the Build Profiles window
- White artifacts/outlines are visible in the Garden Scene when viewing at meshes from a distance
- Shader warnings "Sprite-Unlit-Default" are thrown after building 2D Platrformer Microgame Template
- [Android] HLSL shader becomes corrupted when running on an Android device
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.