API

PathGridSystem

GetCurrentPathNetwork

Returns current selected path network

GetCurrentPathPreset

Returns current selected path preset

GetCurrentPathPresetIndex

Returns current selected path preset index

SetPathNetworkIndex
  • int _index

Set new path network by index

SetPathPresetIndex
  • int _index

Set new path preset by index

AddPathTiles
  • List<Vector3> _positions

  • Action _onCompleteCallback

Add new path tiles at positions on current path network

  • List<Vector3> _positions

  • int _pathNetworkIndex

  • int _pathPresetIndex

  • Action _onCompleteCallback

Add new path tiles at positions with selected network and path preset

RemovePathTiles
  • List<Vector3> _positions

Remove path tiles at positions on current path network

  • List<Vector3> _positions

  • int _pathNetworkIndex

Remove path tiles on selected path network

PathNetwork

GetGridCellTypeAtPosition
  • Vector3: _position

Returns the cell type at position

SetCellTypeAtPosition
  • Vector3: _position

  • CellType: _cellType

Sets a cell type at position

GetExistingPathCell
  • Vector3: _position

Returns a struct of type PathCellData which contains all cell informations such as tile type, location, neighbourCount, yRotation, mapPosition, tileObject and pathPreset

AddPathCells
  • List<Vector3>: _positions

  • PathPreset: _pathPresetData

  • Action: _onCompleteCallback

Adds new path cells at position. Usually this should be called from PathGridSystem.

RemovePathCells
  • List<Vector3>: _positions

Removes path cells at position. Usually this should be called from PathGridSystem.

Last updated