Camera翻译:Yīm
- actualRenderingPath
- allCameras
- aspect
- backgroundColor
- cameraToWorldMatrix
- clearFlags
- CopyFrom
- cullingMask
- current
- depthTextureMode
- depth
- farClipPlane
- fieldOfView
- layerCullDistances
- main
- nearClipPlane
- OnPostRender
- OnPreCull
- OnPreRender
- OnRenderImage
- OnRenderObject
- OnWillRenderObject
- orthographicSize
- orthographic
- pixelHeight
- pixelRect
- pixelWidth
- projectionMatrix
- rect
- renderingPath
- RenderToCubemap
- RenderWithShader
- Render
- ResetAspect
- ResetProjectionMatrix
- ResetReplacementShader
- ResetWorldToCameraMatrix
- ScreenPointToRay
- ScreenToViewportPoint
- ScreenToWorldPoint
- SetReplacementShader
- targetTexture
- velocity
- ViewportPointToRay
- ViewportToScreenPoint
- ViewportToWorldPoint
- worldToCameraMatrix
- WorldToScreenPoint
- WorldToViewportPoint
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