Handles.DrawCamera 绘制相机

static function DrawCamera (position : Rect, camera : Camera, drawMode : DrawCameraMode = DrawCameraMode.Normal) : void

Parameters参数

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你可能希望有恒定屏幕大小的控制柄。

Page last updated: 2011-7-9