
上QQ阅读APP看书,第一时间看更新
1.3.5 游戏场景设置
场景视图是在开发游戏的过程中使用频率非常高的视图面板。在场景视图中通过工具栏中的工具可以更加便捷地对模型进行实时修改。这也是Unity的特点(所见即所得)中“所见”的部分,如图1-48所示。下面对场景视图中的常用功能进行介绍。

图1-48
重要参数介绍
Shaded(绘制模式) : 设置当前场景的绘制模式,单击Shaded可以弹出绘制模式列表,切换为不同的绘制模式后,会显示出不同的场景效果。下面展示常用的3种模式。
Shaded(正常): 显示物体,如图1-49所示。

图1-49
Wireframe(线框): 显示线框,如图1-50所示。

图1-50
Shaded Wireframe(混合): 显示物体和线框,如图1-51所示。

图1-51
2D : 控制是否开启2D模式,一般在制作UI和2D游戏时使用,2D效果如图1-52所示。

图1-52
灯光 : 控制场景灯光的开启和关闭,两种效果的对比如图1-53所示。

图1-53
声音 : 控制场景音频的开启与关闭。
效果 : 控制是否显示天空盒、雾和光晕等效果,可单击右侧的下拉按钮进行具体的效果设置,关闭效果后的物体如图1-54所示。

图1-54
Gizmos(小工具) : 控制物体标记的显示和隐藏,如图1-55所示。

图1-55
Scene Camera(摄像机) : 单击该按钮打开摄像机设置界面,在此可以进行摄像机的基本设置,如图1-56所示。

图1-56
搜索栏 :搜索场景中存在的游戏物体,搜索到的物体会高亮显示,如图1-57所示。

图1-57