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
Remarks
Sets Camera.current to be and sets its pixelRect.. This does not draw the camera, only sets it to be "active". To draw it use Handles.DrawCamera.
cameraSetCamera(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
Remarks
Sets Camera.current to be and sets its pixelRect.. This does not draw the camera, only sets it to be "active". To draw it use Handles.DrawCamera.
camera