How to use ItemList?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zylann
:warning: Old Version Published before Godot 3 was released.

I want to make a list of images that goes from left to right, then go to a new line when the right edge is reached etc.

I see there is Grid, but its number of columns are fixed.

There is ItemList, but it doesn’t seems to do anything to its children, it’s like it just contains them with a background but that’s all. Also, it doesn’t have any properties in the inspector.

How is ItemList supposed to work?

:bust_in_silhouette: Reply From: Zylann

Having a look at the C++ Tilemap editor helped: https://github.com/godotengine/godot/blob/master/tools/editor/plugins/tile_map_editor_plugin.cpp#L209

By default, the column count is 1. Setting it to 0 makes items form a dynamic grid as I want.

It is not documented and properties could be exposed thought.