Navigation
API > API/Plugins > API/Plugins/PaperTiledImporter
| Name | FTiledObject |
| Type | struct |
| Header File | /Engine/Plugins/2D/Paper2D/Source/PaperTiledImporter/Classes/PaperTiledImporterFactory.h |
| Include Path | #include "PaperTiledImporterFactory.h" |
Syntax
struct FTiledObject
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTiledObject() |
PaperTiledImporterFactory.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bVisible | bool | Is the shape currently visible? | PaperTiledImporterFactory.h | |
| Height | double | PaperTiledImporterFactory.h | ||
| ID | int32 | ID of the shape (always 0 for per-tile collision shapes) | PaperTiledImporterFactory.h | |
| Name | FString | Arbitrary user-specified name. | PaperTiledImporterFactory.h | |
| Points | TArray< FVector2D > | 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 | PaperTiledImporterFactory.h | |
| Properties | TArray< FTiledStringPair > | Arbitrary user specified Key-Value pairs. | PaperTiledImporterFactory.h | |
| RotationDegrees | double | Rotation (in degrees) Note: Always 0 for Polyline and Polygon Note: Includes winding (can be < 0 or > 360) | PaperTiledImporterFactory.h | |
| TiledObjectType | ETiledObjectType | The type of the object. | PaperTiledImporterFactory.h | |
| TileGID | uint32 | The tile GID for placed tiles Note: Only used when TiledObjectType is PlacedTile | PaperTiledImporterFactory.h | |
| UserType | FString | Arbitrary user-specified type. | PaperTiledImporterFactory.h | |
| Width | double | Local-space width/height of the shape (Ellipse, Box) Note: Set to (0,0) for Polygon, Polyline, PlacedTile | PaperTiledImporterFactory.h | |
| X | double | 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!) | PaperTiledImporterFactory.h | |
| Y | double | PaperTiledImporterFactory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ParseFromJSON
(
TSharedPtr< FJsonObject > Tree, |
PaperTiledImporterFactory.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddToSpriteGeometryCollection
(
const FVector2D& Offset, |
PaperTiledImporterFactory.h | ||
static bool ParsePointArray
(
TArray< FVector2D >& OutPoints, |
PaperTiledImporterFactory.h |