How to reuse the scene view "Search" visual effect ?

Hi,

I have just implemented a search function in my app which returns a list of objects in the scene. What I have done so far in order to see them is just changing their color to red, which is far from being esthetic or practical.

I would like to use an image effect / set of shaders / script similar to the one used when searching the scene view :

  • Objects which do not match the search are rendered in grayscale.
  • Objects which match the search have their directly visible parts rendered normally, but their occluded parts are rendered in blue and in front of the occluders.

I would like to know if it is a built-in effect / script / shader in order not to reinvent the wheel.

Thanks !

EDIT : Added some images

2869351--210231--redCube.PNG The cube matches the search.
2869351--210229--CubeAndWallGameView.PNG The cube is partially hidden by a wall in the game view.

2869351--210230--CubeAndWallSceneView.PNG This is what I’d like to see in the game view, but I can only achieve that in the scene view.

For fast and easy, you may try some asset in store.

Thanks for the reply !

This is kind of what I am looking for, except it is not compatible with the forward rendering mode, which I’m using because my target device is the iPad.

I wonder if it can be combined with a grayscale image effect without losing its color.

Once again, thanks for the reply. I’ll follow the track of the image effet, now.