Hi. I I have some questions about the Save/Load system.
- I use a custom action to switch cameras with Cinemachine. After I load the save file, AC recognizes the last active camera, but Cinemachine doesn't, so a different camera is displayed. AC's Status debug window shows the correct camera. How can I access the information of the saved camera so I can switch to it using my custom method? Or what would be the best way to approach this?
- I have a button to go back to the Main Menu. Then, on the main menu, I have a Load game button. After clicking on it and after the scene loads, my Pause menu is active. The Pause menu prefab doesn't have any "Remember" component, then why is it remaining active?
- Is the OnLoad cutscene of a scene run only when Loading the save file? Does the OnStart cutscene run as well? Will the OnStart cutscene run every single the time the scene is visited during gameplay?
- I have some scenes that are very different from normal gameplay. There are many local systems to determine the palyer progress in these scenes. Relying on the Player position, hotspots, triggers, etc. isn't enough. If I want to save the different information exclusive to these scenes, how could I do it?
Comments
Thanks for the response!
The package on the Downloads page includes a "Remember Cinemachine VCam" component, which you can use without the rest of it.
Attaching it to a Virtual Camera will save its priority, position, etc - is that the data you're looking to save?