Basically what I want to do is instantiate around 100 buttons, but each have a different option pulled from a WWW.
What I was going to do is make a button prefab and set a script with it that holds the buttons ID and text. How would I edit the ID via script for each one? I’m familiar with the WWW part and instantiating it.
I’m not sure what you mean. I can construct the buttons with their data just fine, but when someone clicks the button I want it to do different things.
For example it will load 100 different images, and when a user clicks one it will respond by displaying the appropriate data for that image.
A good example would be a mail box. For each message for the player found in the database I want to instantiate a subject line and also a view button for each message. When the player clicks the view button beside the subject, how do I tell a new WWW to get the message text to display?