摄像机设置菜单包含用于配置 Scene 视图摄像机的选项。这些调整不会影响带有摄像机组件的游戏对象上的设置。
要访问摄像机设置菜单,请单击 Scene 视图工具栏中的摄像机图标。
属性 | 描述 | |
---|---|---|
Field of View | 摄像机视角的高度。 | |
Dynamic Clipping | 选中此框可使 Unity 计算摄像机的近裁剪面和远裁剪面(相对于场景视口大小)。 | |
Clipping Planes | 距离摄像机多远时 Unity 开始和停止渲染场景中的游戏对象。 | |
Near | 相对于摄像机的最近点(Unity 从此处开始渲染游戏对象)。 | |
Far | 相对于摄像机的最远点(Unity 到此处停止渲染游戏对象)。 | |
Occlusion Culling | 选中此框可在 Scene 视图中启用遮挡剔除。这样可以防止 Unity 渲染摄像机看不到的游戏对象(因为它们隐藏在其他游戏对象背后)。 | |
Camera Easing | 选中此框可使摄像机在 Duration 设置的时间内在 Scene 视图中缓入和缓出运动。这使得摄像机在开始移动时缓入运动(而不是全速运动),而在停止时缓出。 | |
Duration | 摄像机加速到其初始全速(该速度由 Camera Speed 设置)所需的时间(以秒为单位)。 | |
Camera Speed | Scene 视图中摄像机的当前速度。 | |
Min | Scene 视图中摄像机的最慢速度。有效值在 0.01 到 98 之间。 | |
Max | Scene 视图中摄像机的最快速度。有效值在 0.02 到 99 之间。 |
提示:要将属性重置为默认值,请单击摄像机设置菜单右上角中的齿轮图标,然后选择 Reset。
在飞越模式中,可以更改移动过程中摄像机的速度。为此,请使用鼠标滚轮或在触控板上拖动两根手指。
还可以在脚本中使用 SceneView.CameraSetting API 来配置摄像机。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.