- Home /
Question by
zulaikhasalahuddin · Jun 24, 2019 at 11:32 AM ·
listrandomspritesscrollstatic variable
How do add a random sprite from my sprite list to scroll snap ?,I want to know how do i add new sprite in Second scene under scroll snap when user clicks on the button in the first scene.
1: User clicks on the button in the first scene 2: User should be able to see a random sprite from the list added to the second scene in a scroll snap
i made a static list and added 4 sprites now i don't know how to add a random sprite an another scene,I made a static List for the sprites in the script. now I wanna get random sprite from this list and add to the scroll snap in the second scene when the user clicks the button in the first one.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612203732im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Pick between two floats 2 Answers
Random element from the list 1 Answer