Stereoscopic rendering

I’m trying to work on GUI for a stereoscopic 3d package(It includes 2 cameras, left and right and some scripts which divides the screen into two and each shows related camera view. The problem is GUI is rendered on the entire screen rather to be rendered on each camera. How can i tell each camera to render GUI separately in its own screen?
Thanks

I don’t think there is a built-in way to make the GUI render only within a given camera’s view. However, you can offset the coordinates of the GUI conveniently using GUI.matrix. You can set up the matrix using the Matrix4x4.TRS function. (“TRS” stands for “translate, rotate and scale”.) You can pass the pixel offset of the GUI for a particular camera in the first parameter (the translation) then pass an identity quaternion and Vector3.one for the other two parameters to leave the rotation and scale unchanged:-

// Camera's view originates at 100, 200...
GUI.matrix = Matrix4x4.TRS(Vector3(100, 200, 0), Quaternion.identity, Vector3.one);