Table of Contents

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

List<Frame>

Height

The height of the sub-rectangle representing this tile within the tileset image.

public required uint Height { get; set; }

Property Value

uint

ID

The local tile ID within its tileset.

public required uint ID { get; set; }

Property Value

uint

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

Optional<Image>

ObjectLayer

Used when the tile contains e.g. collision information.

public Optional<ObjectLayer> ObjectLayer { get; set; }

Property Value

Optional<ObjectLayer>

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

float

Properties

Tile properties.

public List<IProperty> Properties { get; set; }

Property Value

List<IProperty>

Type

The class of the tile. Is inherited by tile objects

public string Type { get; set; }

Property Value

string

Width

The width of the sub-rectangle representing this tile within the tileset image.

public required uint Width { get; set; }

Property Value

uint

X

The X position of the sub-rectangle representing this tile within the tileset image.

public uint X { get; set; }

Property Value

uint

Y

The Y position of the sub-rectangle representing this tile within the tileset image.

public uint Y { get; set; }

Property Value

uint

Methods

GetProperties()

The properties attached to the object.

public override IList<IProperty> GetProperties()

Returns

IList<IProperty>