❔ Hi need help with code for arrays in unity

i have to code a simple game for school where 3 different items r dropped randomly across a plane and the player is supposed to collect them. depending on which item you collect there should be a ui feedback with a button to use said item we did this with scriptable objects and 3 seperate prefabs that r being instantiated randomly now how do i acess these collected items and how do i use them the items r collected in a list when collected how do i acces a specific index of that list? for now i can only use the item with index 0
No description
2 Replies
yoobgieboobgie
yoobgieboobgieOP14mo ago
i didnt want this post to be too long therefore if u need more info pls ask away the instatiating randomly already works and the scriptable objects do too im just stuck with accessing different index slots of the lsit
Accord
Accord14mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server