Method RemoveLayer
RemoveLayer(int)
Removes the TilemapLayer element at the specified index in this Tilemap.
public bool RemoveLayer(int index)
Parameters
indexintThe index of the TilemapLayer element to remove from this Tilemap.
Returns
- bool
true if the TilemapLayer element was successfully removed; otherwise, false. This method returns false if the specified index is less than zero or is greater than or equal to the total number of TilemapLayer elements in this Tilemap.
RemoveLayer(string)
Removes the TilemapLayer element with the specified name from this Tilemap.
public bool RemoveLayer(string name)
Parameters
namestringThe name of the TilemapLayer element to remove from this Tilemap
Returns
- bool
true if the TilemapLayer element was successfully removed; otherwise, false. This method returns false if this Tilemap does not contain a TilemapLayer element with the specified name.
RemoveLayer(TilemapLayer)
Removes the given TilemapLayer element from this Tilemap.
public bool RemoveLayer(TilemapLayer layer)
Parameters
layerTilemapLayerThe TilemapLayer element to remove from this Tilemap.
Returns
- bool
true if the TilemapLayer element was removed successfully; otherwise, false. This method returns false if this Tilemap does not contain the TilemapLayer element given.