Class DrawingManager Extends MonoBehaviour

Public

Global script which draws debug items and gizmos.

If a Draw.* method has been used or if any script inheriting from the Drawing.MonoBehaviourGizmos class is in the scene then an instance of this script will be created and put on a hidden GameObject.

It will inject drawing logic into any cameras that are rendered.

Usually you never have to interact with this class.

Public Static Methods

GetBuilder ([hasher], [redrawScope], [renderInGame])

Get an empty builder for queuing drawing commands.

A scope which can be used to draw things over multiple frames.

Init ()
Register (item)

Registers an object for gizmo drawing.

Public Variables

gizmos
Public

Public Static Variables

allowRenderToRenderTextures

Allow rendering to cameras that render to RenderTextures.

Public Static
drawToAllCameras
Public Static
instance
Public Static

Private/Protected Members

BeginFrameRendering (context, cameras)
EndCameraRendering (context, camera)
ExecuteCustomRenderPass (context, camera)
PostRender (camera)

Detects which render pipeline is being used and configures them for rendering.

Submit (camera, cmd, usingRenderPipeline, allowCameraDefault)

Submit a camera for rendering.

SubmitFrame (camera, cmd, usingRenderPipeline)
_instance
Private Static
actuallyEnabled

True if OnEnable has been called on this instance and OnDisable has not.

Private
commandBuffer
Private
detectedRenderPipeline
Private
framePassed
Private
gizmoDrawers
Private Static
lastFrameCount
Private
previousFrameRedrawScope
Private
renderPassFeature
Private
scriptableRenderersWithPass
Private
typeToGizmosEnabled
Private
use3dGizmos
Private