TmxGroup
format.tmx.TmxGroup (Class)
A group layer, used to organize the layers of the map in a hierarchy. Its attributes offsetx, offsety, opacity and visible recursively affect child layers.
Instance Members
id: Int
Unique ID of the layer. Each layer that added to a map gets a unique id. Even if a layer is deleted, no layer ever gets the same ID. Can not be changed in Tiled. (since Tiled 1.2)
name: String
The name of the group layer.
offsetX: Int
Rendering offset of the group layer in pixels. Defaults to 0.
offsetY: Int
Rendering offset of the group layer in pixels. Defaults to 0.
opacity: Float
The opacity of the layer as a value from 0 to 1. Defaults to 1.
visible: Bool
Whether the layer is shown (1) or hidden (0). Defaults to 1.
properties: TmxProperties
layers: Array<Anonymous>
new(id: Int, name: String, offsetX: Int, offsetY: Int, opacity: Float, visible: Bool, properties: TmxProperties, layers: Array<Anonymous>): Void
Name | Type | Description |
---|---|---|
id |
Int | Unique ID of the layer. Each layer that added to a map gets a unique id. Even if a layer is deleted, no layer ever gets the same ID. Can not be changed in Tiled. (since Tiled 1.2) |
name |
String | The name of the group layer. |
offsetX |
Int | Rendering offset of the group layer in pixels. Defaults to 0. |
offsetY |
Int | Rendering offset of the group layer in pixels. Defaults to 0. |
opacity |
Float | The opacity of the layer as a value from 0 to 1. Defaults to 1. |
visible |
Bool | Whether the layer is shown (1) or hidden (0). Defaults to 1. |
properties |
TmxProperties | |
layers |
Array |
Metadata
Name | Parameters |
---|---|
:structInit |
- |