- Home /
Question by
smeagols · Jul 17, 2014 at 12:42 PM ·
cameraguigameobjectlayer
Render GameObjects over GUI.Layer
Hi, I have a scene with 2 cameras, MainCamera have a script with GUI.DrawTexture, it's configured on depthOnly, has depth 1, and render all except "ONTOPLayer" The second camera has depthOnly, depth = 0, and only render "ONTOPLayer".
a have one screenKeyboard tha has to be allways on top . this gameobject it's on "ONTOPLayer" but even render behind the GUITextures of MainCamera.
I reed a lot of post about this but don't Works.
Thanks you.
Comment
Answer by rutter · Sep 04, 2014 at 11:43 PM
A single camera will always render its GUILayer over the scene, but you can render over that with a second camera. See the manual for recommendations on using multiple cams.