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.
Inner Types
Public Static Methods
GetBuilder
([hasher], [redrawScope], [renderInGame])
Get an empty builder for queuing drawing commands.
GetRedrawScope
(associatedGameObject=null)
A scope which can be used to draw things over multiple frames.
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
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
Detects which render pipeline is being used and configures them for rendering.
_instance
Private
Static
actuallyEnabled
True if OnEnable has been called on this instance and OnDisable has not.
Private
commandBuffer
Private
detectedRenderPipeline
Private
framePassed
Private
gizmoDrawerIndices
Private
Static
gizmoDrawers
Private
Static
lastFilterFrame
Private
lastFrameCount
Private
lastFrameTime
Private
previousFrameRedrawScope
Private
renderPassFeature
Private
scriptableRenderersWithPass
Private