MapObject

MapObject represents a placed object on an object layer. Access via the 'tilemap' submodule.

Properties


NameDescriptionType
transformTransform component for the object.Transform
is_visibleVisibility flag.bool
uidUnique object identifier.int
nameObject name.str
typeObject type string.str
rectObject bounding rectangle.Rect
tile_idAssociated tile id when the object is a tile.int
shape_typeShape type enum for the object.MapObject.ShapeType
verticesList of vertices for polygon/polyline shapes.'std::vector<kn::Vec2,std::allocator<kn::Vec2> >'
textText properties if the object is text.TextProperties