Handles
- ArrowCap
- BeginGUI
- Button
- CircleCap
- ClearCamera
- color
- ConeCap
- CubeCap
- currentCamera
- CylinderCap
- Disc
- DotCap
- DrawAAPolyLine
- DrawBezier
- DrawCamera
- DrawCapFunction
- DrawLine
- DrawPolyLine
- DrawSolidArc
- DrawSolidDisc
- DrawSolidRectangleWithOutline
- DrawWireArc
- DrawWireDisc
- EndGUI
- FreeMoveHandle
- FreeRotateHandle
- Label
- lighting
- matrix
- PositionHandle
- RadiusHandle
- RectangleCap
- RotationHandle
- ScaleHandle
- ScaleSlider
- ScaleValueHandle
- SetCamera
- Slider2D
- Slider
- SnapValue
- SphereCap
Handles.DrawCamera 绘制相机
static function DrawCamera (position : Rect, camera : Camera, drawMode : DrawCameraMode = DrawCameraMode.Normal) : void
Parameters参数
-
positionThe area to draw the camera within in GUI coordinates.
该区域在GUI坐标内绘制相机 -
cameraThe camera to draw. // 用来绘制的相机
-
drawModeHow the camera is drawn (textured, wireframe, etc.).
相机如何被绘制(纹理,线框等等)
Description描述
Draws a camera inside a rectangle.
在矩形内绘制一个相机。
This function alse sets Camera.current to camera. It sets the camera's pixelRect to position.
这个函数也设置Camera.current到相机。它设置相机的pixelRect到position。
Note: Use HandleUtility.GetHandleSize where you might want to have constant screen-sized handles.
注意:使用HandleUtility.GetHandleSize你可能希望有恒定屏幕大小的控制柄。
最后修改:2011年7月9日 Saturday 13:02