Method GetLayer
GetLayer(int)
Gets the Tilemap
Parameters
index
intThe index of the Tilemap
Layer element to locate.
Returns
- Tilemap
Layer The Tilemap
Layer element located.
Exceptions
- Argument
Out OfRange Exception Thrown if the specified index is less than zero or is greater than or equal to the total number of Tilemap
Layer elements in this AnimatedTilemap .Frame
GetLayer(string)
Gets the Tilemap
Parameters
name
stringThe name of the Tilemap
Layer element to locate.
Returns
- Tilemap
Layer The Tilemap
Layer element located.
Exceptions
- Key
Not Found Exception Thrown if this Animated
Tilemap does not contain a TilemapFrame Layer element with the specified name.