Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

DrawCameraMode

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Drawing modes for Handles.DrawCamera.

Variables

NormalDraw the camera like it would be drawn in-game. This uses the clear flags of the camera.
TexturedDraw the camera textured with selection wireframe and no background clearing.
WireframeDraw the camera in wireframe and no background clearing.
TexturedWireDraw the camera where all objects have a wireframe overlay. and no background clearing.
ShadowCascadesThe camera is set to draw directional light shadow map cascades.
RenderPathsThe camera is set to draw color coded render paths.
AlphaChannelThe camera is set to display the alpha channel of the rendering.
OverdrawThe camera is set to display Scene overdraw, with brighter colors indicating more overdraw.
MipmapsThe camera is set to display the texture resolution, with a red tint indicating resolution that is too high, and a blue tint indicating texture sizes that could be higher.
DeferredDiffuseDraw diffuse color of Deferred Shading g-buffer.
DeferredSpecularDraw specular color of Deferred Shading g-buffer.
DeferredSmoothnessDraw smoothness value of Deferred Shading g-buffer.
DeferredNormalDraw world space normal of Deferred Shading g-buffer.
RealtimeChartingDraw objects with different colors for each real-time chart (UV island).
SystemsDraw objects with different color for each GI system.
RealtimeAlbedoDraw objects with the real-time GI albedo component only.
RealtimeEmissiveDraw objects with the real-time GI emission component only.
RealtimeIndirectDraw objects with the real-time GI indirect light only.
RealtimeDirectionalityDraw objects with the real-time GI directionality component only.
BakedLightmapDraw objects with the baked lightmap only.
ClusteringDraw with different colors for each cluster.
LitClusteringDraw lit clusters.
ValidateAlbedoThe camera is set to draw a physically based, albedo validated rendering.
ValidateMetalSpecularThe camera is set to draw a physically based, metal or specular validated rendering.
ShadowMasksThe camera is set to display colored ShadowMasks, coloring light gizmo with the same color.
LightOverlapThe camera is set to show in red static lights that fall back to 'static' because more than four light volumes are overlapping.
BakedAlbedoDraw objects with the baked albedo component only.
BakedEmissiveDraw objects with the baked emission component only.
BakedDirectionalityDraw objects with the baked directionality component only.
BakedTexelValidityDraw objects with baked texel validity only.
BakedIndicesDraw objects with baked indices only.
BakedChartingDraw objects with different colors for each baked chart (UV island).
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961