Easy way to save many unique playerprefs?

Updated on January 5, 2018 in [A] Unity Scripting
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on January 5, 2018

Imagine you have a platform game and in it are collecting extra puzzle pieces. Say the puzzle is 5×5 which means you’be collecting 25 pieces. 
What is the easiest way to save if each piece has been collected? That would be 25 unique playerprefs to keep track of. 
Is there an efficient way to save all of these values without saying ‘piece1’ ‘piece2’ ‘piece3’ ‘pieceX’?

This is only a hypothetical example so I do not have any code along side it.

  • Liked by