API

TileWorldCreatorManager class

chevron-rightAddCellsToLayerhashtag
AddCellsToLayer(string _layerName, HashSet<Vector2> _cellPositions)

Add cells to a blueprint layer.

chevron-rightAddCellsToLayerByGuidhashtag
AddCellsToLayerByGuid(string _layerGuid, HashSet<Vector2> _cellPositions)

Add cells to a blueprint layer by its layer guid.

chevron-rightRemoveCellsFromLayerhashtag
RemoveCellsFromLayer(string _layerName, HashSet<Vector2> _cellPositions)

Remove cells from a blueprint layer.

chevron-rightResetMaphashtag
ResetMap()

Resets all blueprint layers (painted cells) and build layers. Should be used when using TWC at runtime on Start / Initialization before generating a new map.

chevron-rightClearLayerhashtag
ClearLayer(string _layerName)

Clear all cell positions from a blueprint layer.

chevron-rightFillLayerhashtag

Fill all cells from a blueprint layer.

chevron-rightGenerateCompleteMaphashtag

Generates a complete map. Executes blueprint layer stack and build layer stack.

chevron-rightExecuteBlueprintLayershashtag

Executes blueprint layer stack.

chevron-rightExecuteBuildLayershashtag

Executes build layer stack. ExecutionMode: Normal: Only rebuilds changes. FromScratch: Rebuilds complete map.

chevron-rightGetBlueprintLayerhashtag

Returns a BueprintLayer object.

chevron-rightGetBuildLayerhashtag

Returns a build layer object.

chevron-rightGetBuildLayerByGuidhashtag

Returns a BuildLayer object.

chevron-rightGetRelativeGridPositionhashtag

Convert world position to grid position relative to the TileWorldCreator Manager transforms. Can be used in combination with IsRelativePositionOverGrid.

chevron-rightIsRelativePositionOverGridhashtag

Returns true or false if position is over grid.

chevron-rightSetBlueprintLayerActiveStatehashtag

Enable or disable a blueprint layer.

chevron-rightSetBuildLayerActiveStatehashtag

Enable or disable a blueprint layer

chevron-rightGetCellPositionsInRadiushashtag

Returns a HashSet<Vector2> of all blueprint cell positions within radius from position.

chevron-rightGetBuildLayerTileDataFromPositionhashtag

Returns a TileData object from position.

Last updated