GUI: Best way to have multiple small elements that change

Hello,

I am looking for a way to indicate if certain levels have been passed with checks or stars.
I want to use GUI Textures for this and not unity’s built in GUI system.

An example of this would be say Angry Birds:

What would be a good way to show the stars?

thanks!

Actually you can use Unity GUI’s selection grid and read the level unlocked data from player prefs. And use a if loop to check if the clicked button is already unlocked and if so go to that level. Or if you choose to use a guitexture you need to have an array to add the list of button into the array.

Thanks.
Sorry, I was not being clear. What I want to know is how to achieve this look. Some levels will have 1 star, some 2, some 3. I will read this data from playerprefs or wherever, but how do I display it?
Do I create a separate GUI texture object for each star?

You can make a seperate GUI texture for each star or each star group (1 star, 2 star, 3 star) When you read the values for the level (from playerprefs or wherever you are saving it) have a script instantiate the correct GUITexture in the desired position.

Yeah something like what Dman suggested, Use a for loop to instantiate all after you read the level data from playerpref. :smile: