Saving information between scenes

Hello,

I’m curious about which feature of Unity allows me to store information across scenes. For example: I have scene1, scene2 and scene3, and i have an array containing all complete levels, along with the information (time taken to complete level, etc.). How do i share that information between all scenes, including mainmenu as well?

You can call DontDestroyOnLoad for a game object which contains those scripts. Caveat: create it in a scene you won’t come back to or it will keep creating duplicates.
You can save the information in Player prefs.
You can use a static class and static methods and variables.