Table of Contents

Class ObjectLayer

Namespace
DotTiled
Assembly
DotTiled.dll

Represents an object layer in a map. In Tiled documentation, it is often called an "object group".

public class ObjectLayer : BaseLayer, IHasProperties
Inheritance
ObjectLayer
Implements
Inherited Members

Properties

Color

A color that is multiplied with any tile objects drawn by this layer.

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

Property Value

Optional<Color>

DrawOrder

Whether the objects are drawn according to the order of appearance (Index) or sorted by their Y coordinate (TopDown).

public DrawOrder DrawOrder { get; set; }

Property Value

DrawOrder

Height

The height of the object layer in tiles. Meaningless.

public uint Height { get; set; }

Property Value

uint

Objects

The objects in the object layer.

public required List<Object> Objects { get; set; }

Property Value

List<Object>

Width

The width of the object layer in tiles. Meaningless.

public uint Width { get; set; }

Property Value

uint

X

The X coordinate of the object layer in tiles.

public uint X { get; set; }

Property Value

uint

Y

The Y coordinate of the object layer in tiles.

public uint Y { get; set; }

Property Value

uint