Camera.CopyFrom 复制到

function CopyFrom (other : Camera) : void

Description描述

Makes this camera's settings match other camera.

使这个相机的设置与其他相机相同。

This will copy all camera's variables (field of view, clear flags, culling mask, ...) from the other camera. It will also set this camera's transform to match the other camera, as well as this camera's layer to match the layer of the other camera.

这将从其它相机拷贝所有的相机变量(视野、清除标识、消隐遮罩),这也将设置相机的变换与其它相机相同,相机的层也与其它相机相同。

This can be useful if you want one camera to match the other camera's setup, when doing custom rendering effects. For example when using RenderWithShader.

在做自定义渲染效果的时候,这可以用来设置一台具有与其它相机设置完全相同的相机,例如在使用RenderWithShader时。

最后修改:2011年3月7日 Monday 16:42

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。