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