1
NGUI 3 Support / Re: Making a card game with NGUI.
« on: April 08, 2014, 03:13:05 PM »
I've done this for a contract job and my own project. There is nothing special you need to know when working with NGUI. For each card type build a prefab consisting of a group of sprites and labels. Try to avoid overdraw as much as possible. I load the data from a CSV file and build a model (MVC). The script on the card prefab takes the model representation and hides/tints/changes the sprites and labels. Using UIGrid and a ScrollView is a quick way to handle prototyping a hand of cards.
One thing you will need to worry about is overlapping cards in the same panel. Since the cards are made out of multiple widgets their depths will intersect with each other. You will need to manage the depths manually.
One thing you will need to worry about is overlapping cards in the same panel. Since the cards are made out of multiple widgets their depths will intersect with each other. You will need to manage the depths manually.
