Version: 2022.3

SceneView.IsCameraDrawModeSupported

切换到手册
public bool IsCameraDrawModeSupported (SceneView.CameraMode mode);

参数

mode 要检查的 CameraMode

返回

bool Returns true if the current rendering configuration supports the CameraMode.

描述

Checks if the current rendering configuration supports the CameraMode. The check includes custom validators.

A rendering configuration might not support a CameraMode if the mode has a feature that the current render pipeline does not support. For example, if the render pipeline does not support Enlighten Realtime Global Illumination, and CameraMode has a property DrawCameraMode.RealtimeAlbedo, this method returns false.