Version: 2023.1

Handles.currentCamera

切换到手册
public Camera currentCamera ;

描述

Gets or sets the camera that is currently rendering.

When set in the lifecycle of SceneView.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.