+1 vote

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?

in Engine by (29,120 points)

1 Answer

+1 vote
Best answer

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.

by (29,120 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.