Is there any way of creating a list or an array of hashtables?
What I have is a script that sends a query to a server and receives data back. Right now I'm storing the data in Lists after extracting them from the returned values. There would be a list for:
Names Icons Description
And I would say something like:
Since I stored them in numerical order, index 0 of names would match index 0 of description. Same with all other index. index 7 of names would correspond to index 7 of icons etc
However I want to be able to create them in a way that allows me to order them alphabetically or display only the ones with a particular name etc
I'm not sure if hashtables would be practical or not. I'd appreciate any insight on the matter.
asked May 30 '12 at 08:46 AM
create a class like this,
and create a list
and in the code,
I am serializing the class so that it would be visible in the editor too, so that it would be easy to add value frm scene or to debug.