Class DrawingData

Public

Helper for drawing Gizmos in a performant way.

Inner Types

Wrapper for different kinds of commands buffers.

Combines hashes into a single hash value.

Public Methods

Destroys all cached meshes.

Draw (...)

Schedules...

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

Get an empty builder for queuing drawing commands.

Render (cam, allowGizmos, commandBuffer, allowCameraDefault)

Call after all Draw commands for the frame have been done to draw everything.

Public Variables

frameRedrawScope
Public
lineMaterial

Material to use for lines.

Public
settingsAsset
Public
settingsRef
Public
surfaceMaterial

Material to use for surfaces.

Public
textMaterial

Material to use for text.

Public
version
Public

Private/Protected Members

CeilLog2 (x)
CurrentTime
Private Static
DiscardData (hasher)
DrawUntilDisposed (scope, associatedGameObject)
GetBuiltInBuilder (renderInGame=…)
GetMesh (desiredVertexCount)
LeakTracking
Internal Static Readonly
MarkerAwaitUserDependencies
Internal Static Readonly
MarkerBuild
Internal Static Readonly
MarkerBuildMeshes
Internal Static Readonly
MarkerCollectMeshes
Internal Static Readonly
MarkerPool
Internal Static Readonly
MarkerRelease
Internal Static Readonly
MarkerSchedule
Internal Static Readonly
MarkerScheduleJobs
Internal Static Readonly
MarkerSortMeshes
Internal Static Readonly
MeshType
Internal
PoolMesh (mesh)
TransformBoundingBox (matrix, bounds)

Returns a new axis aligned bounding box that contains the given bounding box after being transformed by the matrix.

adjustedSceneModeVersion

Slightly adjusted scene mode version.

Private
cachedMeshes
Private
cameraVersions
Private
currentDrawOrderIndex
Private
customMaterialProperties
Private
data
Internal
fontData
Internal
frustrumPlanes
Private
gizmosHandle
Internal
lastTickVersion
Private
lastTickVersion2
Private
lastTimeLargestCachedMeshWasUsed
Private
meshSorter
Private Static Readonly
meshes
Private
persistentRedrawScopes
Private
processedData
Internal
sceneModeVersion

Incremented every time the editor goes from play mode -> edit mode, or edit mode -> play mode.

Internal
stagingCachedMeshes
Private
totalMemoryUsage
Private