For my 2d game, I want to create Score Scene which display 10 high scores with player names and points they have.
Basically for title purpose I have created sprite for "Player Name" and "Score" but for actual data displaying I want to use UILabel.
So how to achieve this? For this I have two concepts in mind.
- Place 10 copies of player name and score labels and access them via script which hold actual details
- Runtime create 10 copies of player name and score labels using prefabs and initialise them
But for second approach I have to give then particular position so this thing become frustrating me. For each widget I set anchors type
unified and for all side
set to current position so it always keep its position regarding aspect ratio change.
I want help in creation of score scene. What is the better way to create this?