I clicked accidentally on “New single tile” and created a single tile and everytime I try to delete it, I delete my whole atlas instead of this single tile.
func _ready(): remove_tile(0) func remove_tile(id): var tileset = preload("res://new_tileset.tres") print(tileset.get_tiles_ids()) tileset.remove_tile(id)
to know the tile id go onto the tileset editor and click on the tile and in the options for the tile click on name and it should have a number