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
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
Height
The height of the object layer in tiles. Meaningless.
public uint Height { get; set; }
Property Value
Objects
The objects in the object layer.
public required List<Object> Objects { get; set; }
Property Value
Width
The width of the object layer in tiles. Meaningless.
public uint Width { get; set; }
Property Value
X
The X coordinate of the object layer in tiles.
public uint X { get; set; }
Property Value
Y
The Y coordinate of the object layer in tiles.
public uint Y { get; set; }