Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetCamera

Set the current camera so all Handles and Gizmos are draw with its settings.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

SetCamera(Camera)

Set the current camera so all Handles and Gizmos are draw with its settings.
public static void SetCamera(Camera camera)

Parameters

camera

Remarks

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 Handles.DrawCamera.

SetCamera(Rect, Camera)

Set the current camera so all Handles and Gizmos are draw with its settings.
public static void SetCamera(Rect position, Camera camera)

Parameters

position


camera

Remarks

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 Handles.DrawCamera.