Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
5.6.0a2
Issue ID
847850
Regression
Yes
Regression: Changing color for Renderer.material from script doesn't work anymore
Regression - this works fine in 5.5.0b11
When you try to change color of the material for the sprite from code
"GetComponent<Renderer>().material.color = Color.green;" - it doesn't work
2. How we can reproduce it using the example you attached
1 Open attached project
2 Open scene "sc1" and press Play
Actual result: the sprite is white
Expected result: sprite should become green
- please see image in comments
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
Add comment