Hi all! Just recently got into Unity and picked up playMaker to learn them both concurrently. Very impressed with the power and versatility so far, but I've been hammering away at something for the past couple of days and hoping someone can tell me the best way to go about this:
I'm trying to make a simple email/inbox that I can populate with buttons and strings from an array list. My plan was to use a UGUI scroll rect with vertical layout group and content fitter, and just spawn instances of a button prefab into that, with the buttons themselves representing email links. My button prefab FSM tags each instance at runtime based on string data passed from the main FSM. I then tuck those instances into a GO array list so they can be recalled on demand by tag.
The next part of my (what I'm beginning to feel was a very bad) plan was to just destroy each button GO onclick (after displaying referenced text from the array list in a popop) and then create it again from the array list so that the "new" button automagically spawns into the vertical layout group at the bottom of the list. Everything works beautifully except for that last bit.
I didn't account for the fact that prefab instances are ALWAYS treated as prefabs regardless of whatever tomfoolery I employ to uniquely ID them at runtime lol. Whoops.
I know there is a more elegant way to go about this, and I'm pretty sure I'm either on the verge of making this work, or I'm going to have to try a different approach entirely. It's been a valuable learning experience either way.
Noob welcomes any input and/or suggestions!