Skip to content

TilemapObject Class

Definition

Namespace: Brine2D.Tilemap

Represents a single object from a Tiled objectgroup layer.

C#
public class TilemapObject

Inheritance System.Object → TilemapObject

Properties
CustomProperties Custom properties defined on this object in Tiled.
FlipDiagonal Whether this tile object has the anti-diagonal flip applied \(Tiled's 90\-degree rotation encoding\). Always false for non-tile objects.
FlipHorizontal Whether this tile object is flipped horizontally. Always false for non-tile objects.
FlipVertical Whether this tile object is flipped vertically. Always false for non-tile objects.
Gid For Tile objects: the GID of the tile from the map's tileset\(s\), with flip bits already stripped. Null for all other shape types.
Height Height in pixels \(0 for point objects\).
Id Tiled-assigned unique ID for this object within the map.
Name The object's name as set in Tiled.
Points Vertex list for Brine2D.Tilemap.TilemapObjectShape.Polygon and Brine2D.Tilemap.TilemapObjectShape.Polyline objects. Coordinates are relative to the object's X/Y origin. Null for all other shape types.
Rotation Clockwise rotation in degrees as set in Tiled.
Shape The geometric shape of this object as authored in Tiled.
TextContent The text string for Brine2D.Tilemap.TilemapObjectShape.Text objects as authored in Tiled. null for all other shape types.
Type The object's type/class as set in Tiled.
Visible Whether this object is marked visible in Tiled.
Width Width in pixels \(0 for point objects\).
X World-space X position in pixels.
Y World-space Y position in pixels.