Navigation
API > API/Plugins > API/Plugins/Paper2D
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- PAPER2UPaperTileLayer
References
| Module | Paper2D |
| Header | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperTileLayer.h |
| Include | #include "PaperTileLayer.h" |
Syntax
UCLASS&40;&41;
class PAPER2UPaperTileLayer : public UObject
Remarks
This class represents a single layer in a tile map. All layers in the map must have the size dimensions.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FText | LayerName | Name of the layer. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
PAPER2UPaperTileLayer
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AugmentBodySetup
(
UBodySetup* ShapeBodySetup, |
Adds collision to the specified body setup. | |
| void | |||
| void | DestructiveAllocateMap
(
int32 NewWidth, |
Reallocates the map. This is a destructive operation that does not copy data across! | |
| FPaperTileInfo | GetCell
(
int32 X, |
Returns the tile information about the specified cell. | |
| FLinearColor | Gets the layer-specific color multiplier. | ||
| int32 | Returns the height of the layer (in tiles) | ||
| int32 | Returns the index of this layer in the parent tile map. | ||
| int32 | Returns the width of the layer (in tiles) | ||
| int32 | Returns the number of occupied cells in the layer. | ||
| UPaperTileMap * | GetTileMap () |
Returns the parent tile map. | |
| FTransform | GetTileTransform
(
int32 FlagIndex |
Returns the transform for the given packed flag index (0..7) | |
| bool | InBounds
(
int32 X, |
Returns whether the specified coordinates are in bounds for the layer. | |
| const FPaperTileInfo * | Returns the raw pointer to the allocated cells, only for use when rendering the tile map and should never be held onto. | ||
| void | |||
| void | ResizeMap
(
int32 NewWidth, |
Reallocates the map. This tries to preserve contents. | |
| void | SetCell
(
int32 X, |
Sets the tile information about the specified cell. | |
| void | SetLayerCollides
(
bool bShouldCollide |
||
| void | SetLayerCollisionOffset
(
bool bShouldOverride, |
||
| void | SetLayerCollisionThickness
(
bool bShouldOverride, |
||
| void | SetLayerColor
(
FLinearColor NewColor |
Sets the layer-specific color multiplier (Note: does not invalidate any components using this layer!) | |
| void | SetShouldRenderInEditor
(
bool bShouldRender |
Set whether this layer should be drawn (in the editor) | |
| bool | Should this layer be drawn (in the editor)? | ||
| bool | Should this layer be drawn (in game)? | ||
| bool | UsesTileSet
(
UPaperTileSet* TileSet |
Checks to see if this layer uses the specified tile set Note: This is a slow operation, it scans each tile! |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |