Ouch… I feel like I’m starting to bend the limits here…
Ok, so we have a split-screen game, with a GUI for each player using layers, no problem.
But now when I press escape I’d like to pause and display an options screen (with the game still visible in the background). But of course the options appear twice (and BTW the mouse over is kinda broken).
So I tried to create a third camera, non-split, that would display ONLY the options GUI. I changed it’s depth so that it appears on top of the other cams, but then they don’t show anymore… and of course if I put it below them, well it’s the options I don’t see.
Is there anyway to have a cam on top of another with some sort of alpha layer? Or I am doing this completely the wrong way?
Thanks for the info, wasn’t aware of that option… doesn’t seem to easy to use right now, but it’s the end of the day, my ears are steaming , I’ll have a look tomorrow.
Brilliant, it works perfectly! Thanks a bunch nafonso, it was a lot easier than I thought !
Here’s the procedure for anyone who needs to get the same result:
Create a “player 1” camera, then create your “player 1” GUI and put it on a “player 1” layer.
Do the same with player 2 and options.
Edit the culling mask on “player 1 2” cameras, deactivating the “options” layer.
On the “options” cam, deactivate all layers except “options”.
Set its “clear flags” to “don’t clear”.
Set its depth to 1 (other cams should be 0).
All you have left to do is a small script that will activate/deactivate the options GUI (or the options cam or its GUI layer, any should work) when the user press “escape” or whatever.
It works beautifully, it even does transparency! My options pop-up with a semi-transparent white mask, that’s displayed on top of the other cams, and it still shows them, like greyed-out.