Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Handles.SetCamera

public static void SetCamera(Camera camera);
public static void SetCamera(Rect position, Camera camera);

Description

Set the current camera so all Handles and Gizmos are draw with its settings.

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

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答