기술 자료

Unity Engine

Unity Engine

currentCamera

Gets or sets the camera that is currently rendering.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static Camera currentCamera { get; set; }

Remarks

When set in the lifecycle of OnGUI, Handles.currentCamera determines where 3D handles are drawn. Handles.currentCamera only sets the currently rendering camera, it does not set up the viewport. It is best practice to use Handles.SetCamera and not set the camera directly.