API

PathGridSystem

chevron-rightGetCurrentPathNetworkhashtag

Returns current selected path network

chevron-rightGetCurrentPathPresethashtag

Returns current selected path preset

chevron-rightGetCurrentPathPresetIndexhashtag

Returns current selected path preset index

chevron-rightSetPathNetworkIndexhashtag
  • int _index

Set new path network by index

chevron-rightSetPathPresetIndexhashtag
  • int _index

Set new path preset by index

chevron-rightAddPathTileshashtag
  • 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

chevron-rightRemovePathTileshashtag
  • 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

chevron-rightGetGridCellTypeAtPositionhashtag
  • Vector3: _position

Returns the cell type at position

chevron-rightSetCellTypeAtPositionhashtag
  • Vector3: _position

  • CellType: _cellType

Sets a cell type at position

chevron-rightGetExistingPathCellhashtag
  • Vector3: _position

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

chevron-rightAddPathCellshashtag
  • List<Vector3>: _positions

  • PathPreset: _pathPresetData

  • Action: _onCompleteCallback

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

chevron-rightRemovePathCellshashtag
  • List<Vector3>: _positions

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

Last updated