To save data between scenes, you can use the Data API which saves anything in a globally reachable object.