Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Sorting a list according to the sorting of another one

$
0
0
Hello everyone,

I have two lists,

one contains floats, the other gameobjects. Both lists have the same size.

I want to sort the floats, but if I do so, the elements of the first list will not correspond to the correct game objects anymore. Therefore I need to sort the gameobjects accordingly. How to do this?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>