Navigation
API > API/Plugins > API/Plugins/Paper2D
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- PAPER2UPaperTileSet
References
| Module | Paper2D |
| Header | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperTileSet.h |
| Include | #include "PaperTileSet.h" |
Syntax
UCLASS&40;BlueprintType&41;
class PAPER2UPaperTileSet : public UObject
Remarks
A tile set is a collection of tiles pulled from a texture that can be used to fill out a tile map.
Constructors
| Type | Name | Description | |
|---|---|---|---|
PAPER2UPaperTileSet
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddTerrainDescription
(
FPaperTileSetTerrain NewTerrain |
Adds a new terrain to this tile set (returns false if the maximum number of terrains has already been reached) | |
| void | DestructiveAllocateTileData
(
int32 NewWidth, |
Reallocates the PerTileData array to the specified size. Note: This is a destructive operation! | |
| TArray< UTexture * > | |||
| FLinearColor | Returns the background color displayed in the tile set viewer. | ||
| FIntPoint | Returns the drawing offset for tiles from this set (in pixels) | ||
| FIntMargin | GetMargin () |
Returns the amount of padding around the border of the tile sheet (in pixels) | |
| FPaperTileMetadata * | GetMutableTileMetadata
(
int32 TileIndex |
Returns editable tile metadata for the specified tile index. | |
| int32 | Returns the number of terrains this tile set has. | ||
| FName | |||
| FIntPoint | Returns the amount of padding between tiles in the tile sheet (in pixels) | ||
| FPaperTileSetTerrain | GetTerrain
(
int32 Index |
||
| int32 | GetTerrainMembership
(
const FPaperTileInfo& TileInfo |
Returns the terrain type this tile is a member of, or INDEX_NONE if it is not part of a terrain. | |
| int32 | GetTileCount () |
Returns the number of tiles in this tile set. | |
| int32 | Returns the number of tiles per row in this tile set. | ||
| int32 | Returns the number of tiles per column in this tile set. | ||
| const FPaperTileMetadata * | GetTileMetadata
(
int32 TileIndex |
Returns the tile metadata for the specified tile index. | |
| FIntPoint | Returns the imported size of the tile sheet texture (in pixels) | ||
| UTexture2D * | Returns the tile sheet texture associated with this tile set. | ||
| FIntPoint | GetTileSize () |
Returns the size of a tile (in pixels) | |
| FName | GetTileUserData
(
int32 TileIndex |
Returns the user data name for the specified tile, or NAME_None if there is no user-specified data. | |
| bool | GetTileUV
(
int32 TileIndex, |
Returns the texture-space coordinates of the top left corner of the specified tile index. | |
| FIntPoint | GetTileUVFromTileXY
(
const FIntPoint& TileXY |
Returns the texture-space coordinates of the top left corner of the tile at (TileXY.X, TileXY.Y) | |
| FIntPoint | GetTileXYFromTextureUV
(
const FVector2D& TextureUV, |
Converts the texture-space coordinates into tile coordinates. | |
| void | Reallocates the per-tile data to match the current (WidthInTiles, HeightInTiles) size, copying over what it can. | ||
| void | SetBackgroundColor
(
FLinearColor NewColor |
Returns the background color displayed in the tile set viewer. | |
| void | SetDrawingOffset
(
FIntPoint NewDrawingOffset |
Sets the drawing offset for tiles from this set (in pixels) Note: Does not trigger a rebuild of any tile map components using this tile set | |
| void | SetMargin
(
FIntMargin NewMargin |
Sets the amount of padding around the border of the tile sheet (in pixels) Note: Does not trigger a rebuild of any tile map components using this tile set | |
| void | SetPerTileSpacing
(
FIntPoint NewSpacing |
Sets the amount of padding between tiles in the tile sheet (in pixels) Note: Does not trigger a rebuild of any tile map components using this tile set | |
| void | SetTileSheetTexture
(
UTexture2D* NewTileSheet |
Sets the tile sheet texture associated with this tile set Note: Does not trigger a rebuild of any tile map components using this tile set | |
| void | SetTileSize
(
FIntPoint NewSize |
Sets the size of a tile (in pixels) Note: Does not trigger a rebuild of any tile map components using this tile set |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
See Also
UPaperTileMap
UPaperTileMapComponent