I am using a GridContainer with 3 columns. How do I add a horizontal line separator between each row just like the attached image.
How do I add a horizontal line separator between each row in a GridContainer?
- Edited
You might be able to use an HSeparator.
https://docs.godotengine.org/en/stable/classes/class_hseparator.html
DaveTheCoder I have tried that but since my GridContainer has 3 columns I have to add 3 HSeparator and the result is there is a gap between each HSeparator.
- Edited
- Best Answerset by newguy
Does changing the GridContainer's hseparation theme property to 0 remove the gaps?
add_constant_override("hseparation", 0)
DaveTheCoder Yes, that work but it still has a tiny gap with hseparation 0. I set it to -1 and it's good. Thanks Dave!