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
- [Android][Vulkan] Application crashes with out of memory when warming up a specific shader on some of the Adreno devices
- Unity Editor hangs on a fresh import when using "-CacheServerWaitForUploadCompletion" command line argument
- SpriteShapeRenderer overrides stencil settings when a custom shader is used to set stencil values
- Frame Debugger window is flickering and unusable when HDRP Water is used in the Scene
- New scene is marked dirty when selecting the Main Camera
Add comment