If you have not installed the plugin yet, please follow the Installation Guide to install the plugin first.
- Create an empty Control node scene. Add
GCardHandLayoutas a child.
- Create a
TextureRectnode as a card. Add it as a child node of theGCardHandLayout. Add some texture so the "Card" is visible.
- Customize the card. In this Quick Start Guide, we added a simple texture to represent the card. Set the size to Vector2(80, 100).
- Important: For the layout to work properly, the x value of the pivot offset of the card node must be set to half of the card's width. In this example, we set the pivot offset to Vector2(40, 0).
- Add more cards to see them laying out in a hand layout!
Now that the basic hand layout is set up, feel free to adjust the parameters in the GCardHandLayout to configure the layout as you see fit.





