Cant go through a for each loop of an array of structures

I have this for each loop that stores a structure on an array of sturctures in my savegameBP, and it seems to be working:


But when i try to load it it seems that the for each loop doesnt work:


As you can see here the cast to the save game doesnt fail yet i never get the print of the for each loop, nor i get any error messages…

Any idea whats going on?

If the loop isn’t hitting at all, then your array is probably empty. So, you need to figure out why it’s not saving anything there.

First, add a print right after the cast fail pin, just to make sure the cast actually does succeed.

Second, put a breakpoint on the for loop node, and examine the value of the array in the savegame by hovering over that output pin, to see whether there’s any data in it.

1 Like

I have done that before posting but i figuret it out, the problem was the position of that for each loop:

The save:

The load:

1 Like