This is an example code how to use replacement shader for SceneView
.
- Add this component to your Camera
- Add some GameObject which has
Cube
as its prefix - Select
TestReplacementShader/Enable Custom Render Mode on SceneView
from Untiy Editor's main menu.- All
Cube
objects are drawn in red (replacement shader) in SceneView.
- All
- Select
TestReplacementShader/Disable Custom Render Mode on SceneView
from Untiy Editor's main menu.- All
Cube
objects are drawn in normal shader.
- All