Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Handles.SetCamera

static function SetCamera(camera: Camera): void;
static void SetCamera(Camera camera);
static def SetCamera(camera as Camera) as void
static function SetCamera(position: Rect, camera: Camera): void;
static void SetCamera(Rect position, Camera camera);
static def SetCamera(position as Rect, camera as Camera) as void

Description

Set the current camera so all Handles and Gizmos are draw with its settings.

Sets Camera.current to be camera and sets its pixelRect.. This does not draw the camera, only sets it to be "active". To draw it use DrawCamera.