Class RecastMeshGathererBurst
Package
Inner Types
Public Methods
CollectColliderMeshes
()
Public
CollectRecastMeshObjs
()
Find all relevant RecastMeshObj components and create ExtraMeshes for them.
Public
CollectSceneMeshes
()
Public
CollectTerrainMeshes
(rasterizeTrees, desiredChunkSize)
Public
Finalize
()
Public
RecastMeshGathererBurst
(scene, bounds, terrainSampleSize, mask, tagMask, colliderRasterizeDetail)
Public
Private/Protected Members
AddMeshBuffers
(vertices, triangles)
Private
AddMeshBuffers
(vertices, triangles)
Private
AddNewMesh
(renderer, mesh, area, solid=…, areaIsTag=…)
Private
AddRecastMeshObj
(recastMeshObj)
Private
BoxColliderTris
Box Collider triangle indices can be reused for multiple instances.
Private
Static
Readonly
BoxColliderVerts
Box Collider vertices can be reused for multiple instances.
Private
Static
Readonly
CalculateBounds
(vertices, numVertices, localToWorldMatrix, bounds)
Private
Static
CalculateBoundsDelegate
(vertices, numVertices, localToWorldMatrix, bounds)
Private
CalculateBoundsInvoke
Private
Static
Readonly
CeilDivision
(lhs, rhs)
Returns ceil(lhs/rhs), i.e lhs/rhs rounded up.
Private
Static
CollectTreeMeshes
(terrain)
Private
GenerateHeightmapChunk
(heights, holes, sampleSize, offset, x0, z0, width, depth, stride)
Generates a terrain chunk mesh.
Private
GenerateTerrainChunks
(terrain, bounds, desiredChunkSize)
Private
GetColliderMesh
(collider, localToWorldMatrix)
Private
GetColliderMesh
(col)
Rasterizes a collider to a mesh.
Private
GetColliderMesh
(col, localToWorldMatrix)
Rasterizes a collider to a mesh assuming it's vertices should be multiplied with the matrix.
Private
MeshFilterShouldBeIncluded
(filter)
Private
MeshType
Private
RasterizeBoxCollider
(collider, localToWorldMatrix)
Private
RasterizeCapsuleCollider
(radius, height, bounds, localToWorldMatrix)
Private
RecastAreaFromRecastMeshObj
(obj)
Private
Static
ShouldIncludeCollider
(collider)
Private
anyNonReadableMesh
Private
bounds
Private
Readonly
cachedMeshes
Private
cachedTreePrefabs
Private
colliderRasterizeDetail
Private
Readonly
mask
Private
Readonly
meshData
Private
meshes
Private
scene
Private
Readonly
tagMask
Private
Readonly
terrainSampleSize
Private
Readonly
triangleBuffers
Private
vertexBuffers
Private