I am trying to save a 2D array during a game in Unity. I tried to save the array to csv using using StreamWriter, and while this works, it is too slow and the game stops/crashes for a second. Is there a faster way to save the array? It does not need to be to csv, as long as I can later retrieve the array in C# I can make the conversion post-game.
Edit - More information: I am using Leap Motion to track the user's hands. I would like to save position and rotation of each hand bone (palm + 3 bones per finger) at each frame.