Best solution sorting Array

Hi !

First post here and noob at Unreal Engine developement :slight_smile:

I hope someone can help me, i’m actually working on a bag.

When i interact with an Actor, it open a menu where i can select seeds.

My process is : Take my InventoryArray, copy it in a second array (PlantingInventory) (which i show to planting) in order to get only the seeds items.

Actually, with this code, i get only one item shown.

At the beginning, i was thinking that for loop stop when it hit a result ? But …

Thanks for your help !

Have a good day :slight_smile:

You terminate the function after the first loop iteration, try it like so instead:

1 Like

Thanks for your answer !

That’s work perfectly :slight_smile:

Have a good day !!

1 Like