MapObject

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

Properties


NameDescriptionType
nameObject name.str
rectObject bounding rectangle.Rect
shape_typeShape type enum for the object.MapObject.ShapeType
textText properties if the object is text.TextProperties
tile_idAssociated tile id when the object is a tile.int
transformTransform component for the object.Transform
typeObject type string.str
uidUnique object identifier.int
verticesList of vertices for polygon/polyline shapes.list[Vec2]
visibleVisibility flag.bool