Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Breaking down one list into 5

Discussion in 'Scripting' started by fredastaire, Jan 19, 2019.

  1. fredastaire

    fredastaire

    Joined:
    Sep 10, 2017
    Posts:
    90
    I’m trying to take a list of game objects that is ordered 1-50 and sort them into five lists example

    1,6,11,16,21,26,31,36,41,46 list one
    2,7,12,17,22,27,32,37,42,47 list two
    3,8,13,18,23,28,33,38,43,48 list three
    4,9,14,19,24,29,34,39,44,49 list four
    5,10,15,20,25,30,35,40,45,50 list five
     
  2. Munchy2007

    Munchy2007

    Joined:
    Jun 16, 2013
    Posts:
    1,732
    So, what have you tried?

    Show us some code and we should be able to help with where it's not working.