- Home /
Is it possible to show only a part of what camera sees
Can I show to the screen , only a part of what the camera sees? Is there a way to use shaders for this?
Answer by FM-Productions · May 05, 2017 at 01:42 PM
Hi,
You can assign Layers to different gameObjects, and then set a cullingMask for your main camera. In the cullingMask setting of the Unity Editor you can select what Layers the camera should render (draw to the screen) and what layers not. Simply set a new Layer under "Project Settings/Tags and Layers" called "Invisible" or something and assign this layer to the gameObjects that should not be rendered. Then select your camera and in the Unity editor under the "culling mask" section, unselect the Layer "Invisible", so that all Objects that are on the layer "Invisible" won't be displayed on the screen. Refer to this tutorial:
Your answer
Follow this Question
Related Questions
Camera FoV and Scene Geometry Distortion 1 Answer
Unity3d or Maya-style Camera navigation 5 Answers
Screen Position Out of view frustum error while zooming in gun 0 Answers
Camera smooth transistion 2 Answers