- Home /
Camera in Interface
Hi, I don't know if this possible, but I sure couldn't find anything about it. I'm trying to show a Camera (Not the main one) in a part of the Interface.
So basicly, can I make a small window that renders the other camera?
Are you trying to place the viewport as a subrectangle of the user's screen? or are you trying to have it render as a texture to one of your objects?
As a viewport, do you know how to apply this or do you have a reference on how to implement it?
you can set the rectangle via camera.pixelRect = new Rect(left, top, width, height); http://unity3d.com/support/documentation/ScriptReference/Camera-pixelRect.html
It works perfectly, thank you. Only it appears behind my GUI, do you happen to know how to show it in front of the interface?
"Depth - The camera's position in the draw order. Cameras with a larger value will be drawn on top of cameras with a smaller value" http://unity3d.com/support/documentation/Components/class-Camera
Answer by Weitzel · May 24, 2012 at 07:36 PM
Camer-targetTexture is a Pro-Only feature, where you can have what a camera sees applied as a texture.
In free versions you can have multiple camera's display as different rectangular shapes and sizes on the screen's viewport by specifying offset and width percentages.