Returning values from another thread

If you look at this section of my tutorial

The TArray is actually stored in the pc class, just avoid accessing it in the game thread until the other thread has finished filling it!

and never use ranged for loops when doing fancy stuff like this, use the standard for loop, so you check the length each time :slight_smile: