Search Issue Tracker
By Design
Votes
0
Found in
2019.2
2019.2.3f1
2019.3
2020.1
Issue ID
1200308
Regression
No
UI Image's Material instance doesn't update in Canvas when using Material.SetFloat
How to reproduce:
1. Open the attached project's "case_1200308-Project.zip" Scene labeled "Scene"
2. Enter the Play Mode
3. Open the UI by pressing the "Z" key
4. Click on the red button
Expected result: Animation plays for the button to turn green from red
Actual result: Material is changed but changes don't appear on the button
Reproducible with: 2019.2.16f1, 2019.3.0f3, 2020.1.0a16
Couldn't test with: 2017.4.35f1, 2018.4.14f1 (project's Scripts break)
Note: Unfocusing Editor and switching back to it updates the Material instance
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
- Clearable "RenderingCommandBuffer" errors are thrown in the Console when creating project using Universal 3D Template
- [Quest] Game View displays the last frame when Switching Screen Mirroring off after 1 second delay
- Tooltips sometimes display additional black/grey/clear sections which can cut off text
- OnPostprocessPrefab modifies the source Prefab when fields are edited outside Prefab Mode
- "Articulation Body" fails to move the GameObject when the "XDrive's" "Target" value is set in animation
Resolution Note:
Use image.materialForRendering instead of image.material