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
lineWidthMultiplier

Multiply all line widths by this value.

Public Static

Private/Protected Members

BeginCameraRendering (context, camera)
BeginContextRendering (context, cameras)
BeginFrameRendering (context, cameras)
EndCameraRendering (context, camera)
ExecuteCustomRenderPass (context, camera)
MarkerALINE
Private Static Readonly
MarkerCommandBuffer
Private Static Readonly
MarkerDrawGizmos
Private Static Readonly
MarkerFilterDestroyedObjects
Private Static Readonly
MarkerFrameTick
Private Static Readonly
MarkerGizmosAllowed
Private Static Readonly
MarkerRefreshSelectionCache
Internal Static Readonly
MarkerSubmitGizmos
Private Static Readonly
NO_DRAWING_TIMEOUT_SECS
Private Static
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)
Update ()
_instance
Private Static
actuallyEnabled

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

Private
commandBuffer
Private
detectedRenderPipeline
Private
framePassed
Private
gizmoDrawerTypes
Private Static
gizmoDrawers
Private Static
lastFilterFrame
Private
lastFrameCount
Private
lastFrameTime
Private
previousFrameRedrawScope
Private
renderPassFeature
Private
scriptableRenderersWithPass
Private
typeToGizmosEnabled
Private Readonly