Search Issue Tracker
By Design
Votes
0
Found in
5.3.0f4
Issue ID
752575
Regression
Yes
Material.SetTexture does not change texture of material
Repro steps:
1) Open the project and main.scene in it
2) Select Canvas -> Color Picker -> Image in the Hierarchy
3) Noticed the script attached, which should change the texture on Play
4) Play and notice nothing changes
Regression introduced in: 5.3.0b1
By design: wrong usage of material.SetTexture, was only working since in that case "_MainTex" ID happened to be zero.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
Add comment