Announcement

Collapse
No announcement yet.

Find in Struct Array ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Find in Struct Array ?

    I need to create an array with each item having multiple properties e.g. actor + float, so I started to use a Struct which works fine. However as the float may differ each time I can't just use array find because of the change. I don't really want to create a second array with maybe a name or something to ID it and then get the index, also without looping through each item just to find a specific one that has a matching variable.

    Any suggestions ?

    #2
    you have to iterate over each item.

    Comment


      #3
      What if there's lots of items ?

      Comment


        #4
        Then you have lots of stuff to iterate through ^^

        Struct holds many variables, but isn´t an array by itself.

        Comment

        Working...
        X