用户工具

站点工具


侧边栏

script:unityengine:classes:camera:camera

Camera 摄像机

Namespace: UnityEngine
Inherits from: Behaviour

Description 描述

A Camera is a device through which the player views the world.

Camera是一个设备,玩家通过它看世界。

A screen space point is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.

屏幕空间点用像素定义,屏幕的左下为(0,0);右上是(PixelWidth,pixelHeight).Z的位置是以世界单位衡量的到相机的距离。

A viewport space point is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.

视口空间点是规范的并相对于相机的。相机的左下为(0,0);右上是(1,1);Z的位置是以世界为单位衡量的到相机的距离。

A world space point is defined in global coordinates (eg. Transform.position).

世界空间点是以全局坐标定义的(例如:Transform.position)。

Static Variables 静态变量

allCamerasReturns all enabled cameras in the scene.
返回场景中所有相机
allCamerasCountThe number of cameras in the current scene.
当前场景中相机的数量
currentThe camera we are currently rendering with, for low-level render control only (Read Only).
当前用于渲染的相机,只用于低级的渲染控制(只读)
mainThe first enabled camera tagged “MainCamera” (Read Only).
第一个启用的被标记为“MainCamera”的相机(只读)。

Variables 变量

script/unityengine/classes/camera/camera.txt · 最后更改: 2016/08/02 05:29 (外部编辑)

actualRenderingPathActually used rendering path(Read Only).
实际使用的渲染路径(只读)。
aspectThe aspect ratio (width divided by height).
长宽比(宽度除以高度)。