Method GetLayer
GetLayer(int)
Gets the TilemapLayer element at the specified index in this AnimatedTilemapFrame.
public TilemapLayer GetLayer(int index)
Parameters
indexintThe index of the TilemapLayer element to locate.
Returns
- TilemapLayer
The TilemapLayer element located.
Exceptions
- ArgumentOutOfRangeException
Thrown if the specified index is less than zero or is greater than or equal to the total number of TilemapLayer elements in this AnimatedTilemapFrame.
GetLayer(string)
Gets the TilemapLayer element with the specified name in this AnimatedTilemapFrame.
public TilemapLayer GetLayer(string name)
Parameters
namestringThe name of the TilemapLayer element to locate.
Returns
- TilemapLayer
The TilemapLayer element located.
Exceptions
- KeyNotFoundException
Thrown if this AnimatedTilemapFrame does not contain a TilemapLayer element with the specified name.