ObjectData

Represents an entity in an object layer.

Objects are not necessarily grid-aligned, but rather have a position specified in pixel coords. Each object instance can have a name, type, and set of properties defined in the editor.

Members

Variables

gid
TiledGid gid;

Identifies a tile in a tileset if this object is represented by a tile

height
int height;

Height in pixels. Ignored if using a gid.

id
int id;

Incremental id - unique across all objects

name
string name;

Name assigned to this object instance

properties
string[string] properties;

Optional properties defined on this instance

rotation
float rotation;

Angle in degrees clockwise

type
string type;

User-defined string 'type' assigned to this object instance

visible
bool visible;

Whether object is shown.

width
int width;

Width in pixels. Ignored if using a gid.

x
int x;

x coordinate in pixels

y
int y;

y coordinate in pixels

Meta