Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsCameraDrawModeSupported(CameraMode)

Checks if the current rendering configuration supports the SceneView.CameraMode. The check includes custom validators.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public bool IsCameraDrawModeSupported(SceneView.CameraMode mode)

Parameters

Returns

Type

Description

boolReturns true if the current rendering configuration supports the SceneView.CameraMode.

Remarks

A rendering configuration might not support a SceneView.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 SceneView.CameraMode has a property DrawCameraMode.RealtimeAlbedo, this method returns false.
To register support for a draw mode feature in a custom render pipeline, use SceneView.onValidateCameraMode to add a draw mode validation callback.