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<TiledColor> Color { get; set; }

Property Value

Optional<TiledColor>

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 int Height { get; set; }

Property Value

int

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 int Width { get; set; }

Property Value

int

X

The X coordinate of the object layer in tiles.

public int X { get; set; }

Property Value

int

Y

The Y coordinate of the object layer in tiles.

public int Y { get; set; }

Property Value

int