How do I visualize a specific Render Layer? (VisualInstance3D layers)

Godot Version

v4.2.2.stable.mono.official [15073afe3]


I use 2 render layers: “Default” and “Baked” for use with LightmapGI.


There’s a possibility that I may use more layers, but before proceeding:

Is there a way to display in the editor’s viewport the VisualInstance3D node inheritors (eg. MeshInstance3D types) that are inside a specific layer?

The point is to switch back and forth to notice the ones missing in the layer in a glance (unless there’s a clearer way to make this sort of comparison). Otherwise it can be chaotic to find out (I have a plugin that generates lots of nodes).

I don’t think there is a direct way to do it.

As a workaround, you can add a Camera3D, split the viewport in half and enable its Preview in one of the sides. Then you can change that Camera3D.cull_mask enabling and disabling the layers you want to check.