Local Leaderboard: Android/ iOS
I'm fairly new to Unity but would like to try and make a local leaderboard that'll work on Android and iOS using C#. I will probably try and implement an online leaderboard at a later date using the Google Play Services, but I would like to figure out the offline version first. As of now, I have a script that saves a name and a number to storage using PlayerPrefs, however I'm trying to figure out how to implement a UI to make it work.
The score should be sent to the function along with an imputed name when a button is pressed, and in order to show it all, I was thinking of creating an array of text fields attached to a vertical layout group. Using their indexes to write both the name and score on each respective line, and only showing the fields that contain a name and a score.
I don't really know how to use the GUI script functionality, so that's probably not an option to try, but if anyone knows how to implement this, or an easier method of accomplishing the same functionality please let me know. Thanks
Your answer
Follow this Question
Related Questions
Workflow for developing Unity with native UI (Android and iOS) 0 Answers
Unity Smooth Move and Zoom UI on Canvas for Android/IOS 0 Answers
Remove UI when loading another scene? 0 Answers
When I publish my iOS/Android app, a transparent game object overlaps other 2D game objects 1 Answer
Assetbundles in Unity 5.x 0 Answers