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
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
- Unity Version Control server textfield’s text overlaps with the dropdown triangle button in the Explore repositories window when an organization with a long name is selected
Add comment