UI Disappears when using a Multi-Camera setup.

I’m trying to set up an in-game UI, my Main Camera Orthographic, and a second UI camera as Perspective.

I create the second camera, set the Clear Flags to Depth Only, and the Culling Mask to UI, create a Screen Space Camera canvas and assign the UI Camera as the camera, and I can add UI elements to the canvas and everything will appear correctly in the Game window.

But as soon as I press Play, the UI vanishes. Changing any setting for the UI Camera while play is active will make the UI reappear, but then when I stop the game, the UI vanishes again.

Am I doing something wrong? Is this a known bug? Is there a workaround of some kind?

It will happen regardless of whether the Main Camera is Ortho or Perspective.

I’m using Unity 4.6.0f3, Windows 7 64-bit.

Make the camera which renders the UI as Depth Only and other to skybox or color. You’ll have two separate canvas order of the layer should be high which you want to render on top of other