Tidy Tile Mapper‎ > ‎Runtime API‎ > ‎BlockUtilities‎ > ‎

GetEmptyBlock

Returns an empty Block, bound to a BlockMap. 

Useful for very marginal use-cases.

Example use-case:

You wish to delete a block (visually) but retain the collider and general block data structure, perhaps to facilitate raycasting against this empty space. Think: level editor.

Definition:

Block GetEmptyBlock(BlockMap map)

Return value Description
Block The Empty Block that you wish to add, bound to the map to which you will add it.

Argument DataType Description
map BlockMap The map to which this empty block will eventually be added. This is required, as the empty block's collider will be sized according to the tilescale of the target map.

Comments