How can I make GUI elements not show in my minimap?

I have some GUI elements being used as healthbars in my game, but they are showing up through the minimap.

In other words, if you pan/rotate the camera so that a unit is obscured by the map, its healthbar still shows through.

How can I make my map camera a higher priority on the screen?
I tried toggling the GUILayer on that camera, but no difference…

If you’re talking about actual GUIElements as opposed to OnGUI code, make the minimap a separate camera drawn with a different depth so it’s on top of the camera drawing the GUIElements.

remove the GUI Layer on the minimap camera