Navigation
API > API/Plugins > API/Plugins/PaperTiledImporter
References
| Module | PaperTiledImporter |
| Header | /Engine/Plugins/2D/Paper2D/Source/PaperTiledImporter/Classes/PaperTiledImporterFactory.h |
| Include | #include "PaperTiledImporterFactory.h" |
Syntax
struct FTiledObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bVisible | Is the shape currently visible? | |
| double | Height | ||
| int32 | ID | ID of the shape (always 0 for per-tile collision shapes) | |
| FString | Name | Arbitrary user-specified name. | |
| TArray< FVector2D > | Points | Points for polygon/polyline shapes, relative to (X,Y), which seems to always be the first point in the polygon Note: Only used when TiledObjectType is Polygon or Polyline | |
| TArray< FTiledStringPair > | Properties | Arbitrary user specified Key-Value pairs. | |
| double | RotationDegrees | Rotation (in degrees) Note: Always 0 for Polyline and Polygon Note: Includes winding (can be < 0 or > 360) | |
| ETiledObjectType | TiledObjectType | The type of the object. | |
| uint32 | TileGID | The tile GID for placed tiles Note: Only used when TiledObjectType is PlacedTile | |
| FString | UserType | Arbitrary user-specified type. | |
| double | Width | Local-space width/height of the shape (Ellipse, Box) Note: Set to (0,0) for Polygon, Polyline, PlacedTile | |
| double | X | Position of the shape: Ellipse or Box: The center PlacedTile: Bottom left Polygon or Polyline: Position of first vertex (not their center, the Tiled editor always bakes down rotations for them!) | |
| double | Y |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTiledObject () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddToSpriteGeometryCollection
(
const FVector2D& Offset, |
||
| bool | ParseFromJSON
(
TSharedPtr< FJsonObject > Tree, |
||
| bool | ParsePointArray
(
TArray< FVector2D >& OutPoints, |