Search Issue Tracker
Fixed in 5.2.0
Votes
25
Found in
4.6.0f3
Issue ID
652220
Regression
No
[UI] Image using materials with custom shaders does not render in the game view
To reproduce this issue:
1. Open the attached project
2. Open 'test' scene
3. Notice in the scene view that there is an image in the scene
4. Observe game view
5. Image is not seen in the game view
6. Select image in the hierarchy ( Canvas -> Image)
7. Change Material to 'None'
8. Now image is rendered in the game view
It seems that using custom shaders do not work on UI Images. The same materials with custom shaders work fine in the game view when using sprites/other gameobjects.
Captured repro: http://screencast.com/t/ihqglIj9V
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
- [Android] [Vulkan] UI that is activated after a delay flickers when a Scriptable Render Pass goes over it
- [Linux] Characters are converted to Latin letters when using IME on Linux
- [Ubuntu] Possible for Create menu to show sections with no options inside
- [Usability] Not possible to set Editor Window text colour to be default black without workaround
- Text field max length is -1 by default
FlightOfOne
Jun 11, 2015 20:04
I am having the same exact issue. Only Material that works (which does nothing, it seems), is the Sprite-Default material.
boylec
Jun 01, 2015 20:44
My shader looks awesome on sprites and/or meshes however when I apply it to a UI.Image everything gets extremely skewed. Is this intended?
gridside
Mar 24, 2015 22:24
Same here
PNordlund
Mar 18, 2015 09:35
An image with a custom shader seems to work ok on Unity 5.0.0f4 but when adding an ImageEffect to Camera, the GUI Image with a custom shader - or even with the Sprites-Default shader disappears in game view.
PNordlund
Mar 18, 2015 09:35
An image with a custom shader seems to work ok on Unity 5.0.0f4 but when adding an ImageEffect to Camera, the GUI Image with a custom shader - or even with the Sprites-Default shader disappears in game view.
andersemil
Feb 23, 2015 12:54
Still not working in 4.6.3f1
Radetic
Feb 20, 2015 18:25
Had the same problem trying material with this shader (http://ideone.com/euvkpr) on a UI Image component. The same material does exactly what it's suppose to (render always on top) when applied to MeshRenderer type of component.