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 (renderInGame=…)

Get an empty builder for queuing drawing commands.

Public Static
GetBuilder (redrawScope, renderInGame=…)

Get an empty builder for queuing drawing commands.

Public Static
GetBuilder (hasher, redrawScope=…, renderInGame=…)

Get an empty builder for queuing drawing commands.

Public Static
GetRedrawScope ()

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

Public Static
Init ()
Public Static
Register (item)

Registers an object for gizmo drawing.

Public Static

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

_instance
Private Static
actuallyEnabled

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

Private
AnnotationUtility
Private Static
BeginFrameRendering (context, cameras)
Private
builtGizmos
Private
cachedObjectParameterArray
Private
CheckFrameTicking ()
Private
commandBuffer
Private
DelayedDestroy ()
Private
detectedRenderPipeline
Private
DrawGizmos (usingRenderPipeline)
Private
EndCameraRendering (context, camera)
Private
ExecuteCustomRenderPass (context, camera)
Package
framePassed
Private
gizmoDrawers
Private Static
IsGizmosAllowedForObject
Private Static
lastFrameCount
Private
OnDisable ()
Private
OnEnable ()
Private
OnPlayModeStateChanged (change)
Private
OnUpdate ()
Private
PostRender (camera)
Private
previousFrameRedrawScope
Private
RefreshRenderPipelineMode ()

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

Private
RemoveDestroyedGizmoDrawers ()
Private
ShouldDrawGizmos (obj)
Private
Submit (camera, cmd, usingRenderPipeline, allowCameraDefault)

Submit a camera for rendering.

Private
SubmitFrame (camera, cmd, usingRenderPipeline)
Package
typeToGizmosEnabled
Private
use3dGizmos
Private