FTiledObject

Windows
MacOS
Linux

References

Module

PaperTiledImporter

Header

/Engine/Plugins/2D/Paper2D/Source/PaperTiledImporter/Classes/PaperTiledImporterFactory.h

Include

#include "PaperTiledImporterFactory.h"

Syntax

struct FTiledObject

Variables

Name Description

Public variable

bool

 

bVisible

Is the shape currently visible?

Public variable

double

 

Height

Public variable

int32

 

ID

ID of the shape (always 0 for per-tile collision shapes)

Public variable

FString

 

Name

Arbitrary user-specified name.

Public variable

TArray< FVector...

 

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

Public variable

TArray< FTiledS...

 

Properties

Arbitrary user specified Key-Value pairs.

Public variable

double

 

RotationDegrees

Rotation (in degrees) Note: Always 0 for Polyline and Polygon Note: Includes winding (can be < 0 or > 360)

Public variable

ETiledObjectTyp...

 

TiledObjectType

The type of the object.

Public variable

uint32

 

TileGID

The tile GID for placed tiles Note: Only used when TiledObjectType is PlacedTile

Public variable

FString

 

UserType

Arbitrary user-specified type.

Public variable

double

 

Width

Local-space width/height of the shape (Ellipse, Box) Note: Set to (0,0) for Polygon, Polyline, PlacedTile

Public variable

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!)

Public variable

double

 

Y

Constructors

Name Description

Public function

FTiledObject()

Functions

Name Description

Public function Static

void

 

AddToSpriteGeometryCollection

(
    const FVector2D& Offset,
    const TArray< FTiledObject >& InOb...,
    FSpriteGeometryCollection& InOutSh...
)

Public function

bool

 

ParseFromJSON

(
    TSharedPtr< FJsonObject > Tree,
    const FString& NameForErrors,
    bool bSilent
)

Public function Static

bool

 

ParsePointArray

(
    TArray< FVector2D >& OutPoints,
    const TArray< TSharedPtr< FJsonValu...,
    const FString& NameForErrors,
    bool bSilent
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss