Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity sort a list

playerList.Sort((p1,p2)=>p1.score.CompareTo(p2.score));
 
PREVIOUS NEXT
Tagged: #unity #sort #list
ADD COMMENT
Topic
Name
5+6 =