Struct JobConnectTiles Extends IJob

Public

Connects two adjacent tiles together.

This only creates connections between tiles. Connections internal to a tile should be handled by JobCalculateTriangleConnections.

Use the ScheduleBatch method to connect a bunch of tiles efficiently using maximum parallelism.

Public Methods

Execute ()
Public

Public Static Methods

ScheduleBatch (tilesHandle, dependency, tileRect, tileWorldSize, maxTileConnectionEdgeDistance)

Schedule jobs to connect all the given tiles with each other while exploiting as much parallelism as possible.

Public Static

Public Variables

maxTileConnectionEdgeDistance

Maximum vertical distance between two tiles to create a connection between them.

Public
tileIndex1

Index of the first tile in the tiles array.

Public
tileIndex2

Index of the second tile in the tiles array.

Public
tileWorldSizeX

Size of a tile in world units along the graph's X axis.

Public
tileWorldSizeZ

Size of a tile in world units along the graph's Z axis.

Public
tiles

GCHandle referring to a NavmeshTile[] array of size tileRect.Width*tileRect.Height.

Public