Scene depth in real time.

Hello everyone. Pretty simple question here i guess. Is it possible to render the scene as a Scene Depth visualization in real time while playing? I see this in the editor window, but any way to enable during game?

Thanks!

For just scene depth you could also use a translucent material or post process volume and render the scene depth using the “SceneDepth” node and place it on a quad in front of the camera or using a sky-dome mesh with the material set to “disable depth test”.

The editor does this using some “visualization” materials that get applied using post processing. You can actually find these under the “engine\content” folder. For example there is one called BaseColor and Specular etc.

Thank you! This helped me understand how it works and am able to achieve what i’m looking for.