Fields

y:Float

Y coordinate in pixels

x:Float

X coordinate in pixels

width:Float

Width in pixels.

visible:Bool

Whether object is shown in editor.

text:TiledText

Only used for text objects

template:String

Reference to a template file, in case object is a template instance

rotation:Float

Angle in degrees clockwise

polyline:Array<TiledPoint>

Array of TiledPoint, in case the object is a polyline

polygon:Array<TiledPoint>

Array of TiledPoint, in case the object is a polygon

point:Bool

Used to mark an object as a point

name:String

String assigned to name field in editor

id:Int

Incremental ID, unique across all objects

height:Float

Height in pixels.

gid:Int

Global tile ID, only if object represents a tile

ellipse:Bool

Used to mark an object as an ellipse

_class:String

The class of the object (renamed from type since 1.9, optional)