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

UI

-

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)

  1. 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.

  2. 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?

  3. gridside

    Mar 24, 2015 22:24

    Same here

  4. 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.

  5. 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.

  6. andersemil

    Feb 23, 2015 12:54

    Still not working in 4.6.3f1

  7. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.