Method AddLayer
AddLayer(TilemapLayer)
Adds the given TilemapLayer element to this Tilemap.
public void AddLayer(TilemapLayer layer)
Parameters
layer
TilemapLayerThe TilemapLayer element to add.
Exceptions
- InvalidOperationException
Thrown if this Tilemap already contains a TilemapLayer element with the same name as the TilemapLayer element given.