Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperTileMap.h |
Include |
#include "PaperTileMap.h" |
UCLASS(BlueprintType)
class PAPER2UPaperTileMap : public UObject
A tile map is a 2D grid with a defined width and height (in tiles). There can be multiple layers, each of which can specify which tile should appear in each cell of the map for that layer.
Name | Description | ||
---|---|---|---|
|
TObjectPtr< cla... |
AssetImportData |
Importing data and options used for this tile map |
|
BackgroundColor |
The background color displayed in the tile map editor |
|
|
TObjectPtr< UBo... |
BodySetup |
Baked physics data. |
|
float |
CollisionThickness |
The extrusion thickness of collision geometry when using a 3D collision domain. |
|
HexSideLength |
The vertical height of the sides of the hex cell for a tile. |
|
|
LayerGridColor |
The color of the layer grid |
|
|
LayerNameIndex |
The naming index to start at when trying to create a new layer |
|
|
MapHeight |
Height of map (in tiles) |
|
|
MapWidth |
Width of map (in tiles) |
|
|
TObjectPtr< UMa... |
Material |
The material to use on a tile map instance if not overridden. |
|
MultiTileGridColor |
The color of the multi tile grid |
|
|
MultiTileGridHeight |
Number of tiles the multi tile grid spans vertically. 0 removes horizontal lines |
|
|
MultiTileGridOffsetX |
Number of tiles the multi tile grid is shifted to the right |
|
|
MultiTileGridOffsetY |
Number of tiles the multi tile grid is shifted downwards |
|
|
MultiTileGridWidth |
Number of tiles the multi tile grid spans horizontally. 0 removes vertical lines |
|
|
float |
PixelsPerUnrealUnit |
The scaling factor between pixels and Unreal units (cm) (e.g., 0.64 would make a 64 pixel wide tile take up 100 cm) |
|
TEnumAsByte< ET... |
ProjectionMode |
Tile map type. |
|
SelectedLayerIndex |
The currently selected layer index |
|
|
TSoftObjectPtr<... |
SelectedTileSet |
Last tile set that was selected when editing the tile map. |
|
float |
SeparationPerLayer |
The Z-separation between each layer of the tile map. |
|
float |
SeparationPerTileX |
The Z-separation incurred as you travel in X (not strictly applied, batched tiles will be put at the same Z level) |
|
float |
SeparationPerTileY |
The Z-separation incurred as you travel in Y (not strictly applied, batched tiles will be put at the same Z level) |
|
TEnumAsByte< ES... |
SpriteCollisionDomain |
Collision domain (no collision, 2D, or 3D) |
|
TileGridColor |
The color of the tile grid |
|
|
TileHeight |
Height of one tile (in pixels) |
|
|
TileLayers |
The list of layers. |
|
|
TileWidth |
Width of one tile (in pixels) |
Name | Description | |
---|---|---|
|
PAPER2UPaperTileMap ( |
Name | Description | ||
---|---|---|---|
|
AddExistingLayer ( |
Handles adding an existing layer that does not belong to any existing tile map. |
|
|
UPaperTileLa... |
AddNewLayer ( |
Creates and adds a new layer and returns it. |
|
UPaperTileMa... |
CloneTileMap ( |
Creates a clone of this tile map in the specified outer. |
|
GenerateNewLayerName ( |
Creates a reasonable new layer name. |
|
|
float |
GetCollisionThickness() |
Returns the extrusion thickness of collision geometry when using a 3D collision domain. |
|
GetLocalToTileParameters |
||
|
float |
GetPixelsPerUnrealUnit() |
Return the scaling factor between pixels and Unreal units (cm) |
|
FBoxSphereBo... |
GetRenderBounds() |
|
|
ESpriteColli... |
GetSpriteCollisionDomain() |
Returns the collision domain (no collision, 2D, or 3D) |
|
GetTileCenterInLocalSpace ( |
Returns the center of the specified tile in local space. |
|
|
GetTileCoordinatesFromLocalSpacePosition |
Returns the tile coordinates of the specified local space position. |
|
|
GetTilePolygon |
Returns the polygon for the specified tile (will be 4 or 6 vertices as a rectangle, diamond, or hexagon) |
|
|
GetTilePositionInLocalSpace ( |
Returns the top left corner of the specified tile in local space. |
|
|
GetTileToLocalParameters |
||
|
float |
GetUnrealUnitsPerPixel() |
Return the scaling factor between Unreal units (cm) and pixels. |
|
InitializeNewEmptyTileMap ( |
Called when a fresh tile map has been created (by factory or otherwise) Adds a default layer and pulls the PixelsPerUnrealUnit from the project settings |
|
|
IsLayerNameInUse ( |
Returns true if the specified name is already in use as a layer name. |
|
|
RebuildCollision() |
Rebuild collision and recreate the body setup. |
|
|
ResizeMap |
Resize the tile map and all layers. |
|
|
SetCollisionDomain ( |
Sets the collision domain. |
|
|
SetCollisionThickness ( |
Sets the collision thickness. |
|
|
UpdateBodySetup() |
||
|
UsesTileSet ( |
Checks to see if this tile map uses the specified tile set. |
|
|
ValidateSelectedLayerIndex() |
Name | Description | ||
---|---|---|---|
|
CanEditChange ( |
Called by the editor to query whether a property of this object is allowed to be modified. |
|
|
GetAssetRegistryTags ( |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects |
|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostInitProperties() |
Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
|
PreEditChange ( |
This is called when a property is about to be modified externally |
|
|
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |