- Home /
Question by
mwozniak93 · May 19, 2015 at 01:44 PM ·
uiinstantiateprefab
Creating Dynamic UI
Hello, I am creating UI for my game, I want to have 3 skills Images/Buttons on screen and they need to be only the ones which are choosen by player. So lets say I have 20 skills, player click on one skills in Menu and he has it on Screen and same with other 2.
Is it a good way to have class Skill with property ID and when Player choose his skill then Instanitate from Resources previously created prefab "Skill"+ skill.id ?
Then If it is loaded on screen you can click it and does the action it supposed to do.
It will make me to do about 20-30 prefabs, but as I checked they are not too big (5-20kb) , so is it good enough solution?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613195958im_/https://answers.unity.com/themes/thub/images/avi.jpg)