Hi I try to duplicate a tilemap with instantiate
GameObject overLay = Instantiate(map.gameObject);
The Object is duplicated but the tiles of the tilemap not.
How can i clone a tilemap with the tiles on it in runtime?
Hi I try to duplicate a tilemap with instantiate
GameObject overLay = Instantiate(map.gameObject);
The Object is duplicated but the tiles of the tilemap not.
How can i clone a tilemap with the tiles on it in runtime?
If someone is intrested in it i found a salution.
The problem was that the duplicated tilemap was not a child of the grid.
overLay.transform.SetParent(map.transform.parent);