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
Comments (17)
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
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.