Is there a node that removes indexes from a grid panel without using “Remove child at” which doesn’t work, it just breaks my grid panel. I want something that removes and the slots fit next to each other once this child comes out.
I’m just removing it visually to filter and show certain items. I don’t want to touch my array, but just the Grid panel, which is extremely more optimized and wouldn’t run the risk of breaking the inventory items.
Hello! It doesn’t work either . I mean… yes but not how I need it to work. I noticed that it has Column and Row filling. Could you tell me if there is any way to let the grid panel calculate this automatically depending on the number of items within the grid? Or a light on the way to guide me on how to use Collumn and Row? Any help is a HUGE help, friend. Thank you very much in advance.
Do you know if there is a node that fills the column and row automatically? or one where I can change the index of items within the grid. A swap, something like that…
Hello, thanks for your response.
My system does not support using wrap box, it is using a grid panel and if I use wrap box an infinite food glitch happens.
That sounds more like a developer issue, rather than a Wrap Box issue, heh! Under the hood it’s pretty much identical - you add user widgets to a panel, but no longer need to worry about columns / rows at all. Grid / Wrap Box both have their advantages, ofc. Use what you need. Merely suggesting an immediate solution to the issue in the topic.
As in, no script is needed for the above behaviour. Adding / removing children would automatically handle the placement.
Anyway, for any kind of moderately advanced inventory management, one would create collapsible slots first, surely. So the infinite glitch should never be happening in the first place.
Also, consider a Tile View if you need something a tad more nuanced. Especially if you’re planning on have a lot of widgets.
Thank you so much again. And actually, in my case wrap box is a little better to use. I just discovered why an infinite food glitch was occurring and yes, it was because of the conflicting wrap box. Fixed and now the inventory item filter works. Thanks a lot for the help. It’s much better to be a visual-only filter and not touch the array. But I noticed that if I want to add “Dummy slots” to just show them empty, another bug occurs with the wrap box.