Using more than one camera 多个相机
本文档主要是对Unity官方手册的个人理解与总结(其实以翻译记录为主:>)
仅作为个人学习使用,不得作为商业用途,欢迎转载,并请注明出处。
文章中涉及到的操作都是基于Unity2018.2版本
参考链接:https://docs.unity3d.com/Manual/MultipleCameras.html
When created, a Unity scene contains just a single camera and this is all you need for most situations. However, you can have as many cameras in a scene as you like and their views can be combined in different ways, as described below.
当创建一个Unity场景时,它只包含一个摄像头,这是大多数情况下你所需要的。但是,您可以在场景中拥有任意数量的相机,并且它们的视图可以以不同的方式组合在一起,如下所述。
Switching cameras
By default, a camera renders its view to cover the whole screen and so only one camera view can be seen at a time (the visible camera is the one that has the highest value for its depth property). By disabling one camera and enabling another from a script, you can “cut” from o

本文档介绍如何在Unity中利用多个相机创建不同的视图效果,包括从一个相机切换到另一个相机,以及在大视图内嵌套小视图的方法。通过调整相机的Viewport Rect属性和深度值,可以实现如高空俯视图和第一人称视图的切换,或者在屏幕特定区域显示小视图,如驾驶游戏中的后视镜或小地图。
最低0.47元/天 解锁文章
571

被折叠的 条评论
为什么被折叠?



