Hide render layers in the editor

Godot Version

4.4

Question

I am making a top-down 3D RPG game that has a minimap. The minimap is a viewport, with a camera that has a Cull Mask set only to “2”, which is the layer I use for minimap icons for the player, enemies, walls, etc.

However, this means that in the editor I can see these icons, since it shows all render layers, and they clip through the floor and are very distracting. Is there a way I can toggle the visibility of render layer 2 in the editor, without affecting its visibility ingame? Like a camera’s cull mask, but for the editor viewport?

I was just searching on how to do this, and found this thread. I also found an open proposal, so I’d assume this currently isn’t possible.

For any future people who find this thread first, the proposal is here:

Go :+1: to increase the chance of this proposal being implemented at some point.

I also need this, I made a tool that generates a minimap-only mesh for my road meshes with its own material, but the problem is it’s z-fighting with the actual mesh, only solution was to put it below the map for now