Camera

Cameras are the devices that capture and display the world to the player. By customizing and manipulating cameras, you can make the presentation of your game truly unique. You can have an unlimited number of cameras in a scene. They can be set to render in any order, at any place on the screen, or only certain parts of the screen.

 

 

Properties

  
Clear FlagsDetermines which parts of the screen will be cleared. This is handy when using multiple Cameras to draw different game elements.
BackgroundColor applied to the remaining screen after all elements in view have been drawn and there is no skybox.
Culling MaskInclude or omit layers of objects to be rendered by the Camera. Assign layers to your objects in the Inspector.
ProjectionToggles the camera's capability to simulate perspective.
PerspectiveCamera will render objects with perspective intact.
OrthographicCamera will render objects uniformly, with no sense of perspective.
Size (when Orthographic is selected)The viewport size of the Camera when set to Orthographic.
Field of viewWidth of the Camera's view angle, measured in degrees along the local Y axis.
Clipping PlanesDistances from the camera to start and stop rendering.
NearThe closest point relative to the camera that drawing will occur.
FarThe furthest point relative to the camera that drawing will occur.
Normalized View Port RectFour values that indicate where on the screen this camera view will be drawn, in Screen Coordinates (values 0-1).
XThe beginning horizontal position that the camera view will be drawn.
YThe beginning vertical position that the camera view will be drawn.
W (Width)Width of the camera output on the screen.
H (Height)Height of the camera output on the screen.
DepthThe camera's position in the draw order. Cameras with a larger value will be drawn on top of cameras with a smaller value.
Rendering PathOptions for defining what rendering methods will be used by the camera.
Use Player SettingsThis camera will use whichever Rendering Path is set in the Player Settings.
Vertex LitAll objects rendered by this camera will be rendered as Vertex-Lit objects.
ForwardAll objects will be rendered with one pass per material, as was standard in Unity 2.x.
Deferred Lighting (Unity Pro only)All objects will be drawn once without lighting, then lighting of all objects will be rendered together at the end of the render queue.
Target Texture (Unity Pro/Advanced only)Reference to a Render Texture that will contain the output of the Camera view. Making this reference will disable this Camera's capability to render to the screen.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值