MapObject
MapObject represents a placed object on an object layer. Access via the 'tilemap' submodule.
Properties
| Name | Description | Type |
|---|---|---|
name | Object name. | str |
rect | Object bounding rectangle. | Rect |
shape_type | Shape type enum for the object. | MapObject.ShapeType |
text | Text properties if the object is text. | TextProperties |
tile_id | Associated tile id when the object is a tile. | int |
transform | Transform component for the object. | Transform |
type | Object type string. | str |
uid | Unique object identifier. | int |
vertices | List of vertices for polygon/polyline shapes. | list[Vec2] |
visible | Visibility flag. | bool |