Class Tile
- Namespace
- DotTiled
- Assembly
- DotTiled.dll
Represents a single tile in a tileset, when using a collection of images to represent the tileset. Tiled documentation for Tileset tiles
public class Tile : HasPropertiesBase, IHasProperties
- Inheritance
-
Tile
- Implements
- Inherited Members
Properties
Animation
The animation frames for this tile.
public List<Frame> Animation { get; set; }
Property Value
Height
The height of the sub-rectangle representing this tile within the tileset image.
public required uint Height { get; set; }
Property Value
ID
The local tile ID within its tileset.
public required uint ID { get; set; }
Property Value
Image
The image representing this tile. Only used for tilesets that composed of a collection of images.
public Optional<Image> Image { get; set; }
Property Value
ObjectLayer
Used when the tile contains e.g. collision information.
public Optional<ObjectLayer> ObjectLayer { get; set; }
Property Value
Probability
A percentage indicating the probability that this tile is chosen when it competes with others while editing with the terrain tool.
public float Probability { get; set; }
Property Value
Properties
Tile properties.
public List<IProperty> Properties { get; set; }
Property Value
Type
The class of the tile. Is inherited by tile objects
public string Type { get; set; }
Property Value
Width
The width of the sub-rectangle representing this tile within the tileset image.
public required uint Width { get; set; }
Property Value
X
The X position of the sub-rectangle representing this tile within the tileset image.
public uint X { get; set; }
Property Value
Y
The Y position of the sub-rectangle representing this tile within the tileset image.
public uint Y { get; set; }
Property Value
Methods
GetProperties()
The properties attached to the object.
public override IList<IProperty> GetProperties()