Stacking UI Text+Icon when collecting items based on Dynamic Template
Ok, here my question... I'd like a "cascade UI" to appear on top-left of my UI when I collect an item from the ground. The game is an action-platformer, so I can collect quickly up to 6-7 items when they are spawned for instance after defeating an enemy. And I'd like to show each of them, one after another, in a cascade, with like 2-3 seconds timing before disappearing. So, for instance, if I collect one item at time 0, one at time 0.5, one at time 1, they will appear in sequence in the UI and disappear after 2s, 2.5s and 3s.... And so on. It would have been easy if I'm using the same UI (text+icon) at once, but then if I collect multiple items before the "disappearing" time, then it won't work. I know how to create a "template" for a single item, and I now how to stack them using a Vertical Group or a Grid and the layout element. But my question is: how do I send (add) a new template UI (text+icon) as child to my existing Vertical Group/Grid considering that at start it'll be empty and a new child should be added each time I collect an item?! Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220613044633im_/https://answers.unity.com/themes/thub/images/avi.jpg)