Navigation
API > API/Plugins > API/Plugins/Paper2D > API/Plugins/Paper2D/PAPER2UPaperTileMapComponent
References
| Module | Paper2D |
| Header | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperTileMapComponent.h |
| Include | #include "PaperTileMapComponent.h" |
UFUNCTION&40;BlueprintCallable, Category&61;"Sprite"&41;
void CreateNewTileMap
&40;
int32 MapWidth,
int32 MapHeight,
int32 TileWidth,
int32 TileHeight,
float PixelsPerUnrealUnit,
bool bCreateLayer
&41;
Remarks
Creates a new tile map of the specified size, replacing the TileMap reference (or dropping the previous owned one)
Parameters
| Name | Description |
|---|---|
| MapWidth | Width of the map (in tiles) |
| MapHeight | Height of the map (in tiles) |
| TileWidth | Width of one tile (in pixels) |
| TileHeight | Height of one tile (in pixels) |
| bCreateLayer | Should an empty layer be created? |