ドキュメント

Unity Engine

Unity Engine

SetCamera

Set the current camera so all Handles and Gizmos are draw with its settings.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.