How to sort an integer array in blueprint?
Hi everyone, I am trying to implement an scoreboard using blueprint which will sort player scores in descending order and show only top five of them, no matter how much time the game has been played. So , basically I need a sorted array. I have checked some YouTube videos and some UE4 answers, but frankly to say, I haven't understood quite clear. I'm quite new to Unreal and this is our first team project. So, if someone please upload a blueprint image of how to sort an integer array with simple methods, I'll be greatly helped. For someone who wish to help, My scoreboard only contains integers and this integer array is supposed to be worked on saved scores and it'll be shown when the player dies. Thanks in advance.
asked Jun 26 '18 at 09:14 AM in Blueprint Scripting
You Can use max to get the top value.
You can then remove it using its index and repeat the process to get the next highest.
answered Jun 26 '18 at 09:47 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here