Page 1 of 1
How to add own code
Posted: Mon Feb 24, 2025 3:00 am
by Lunarain
I have looked through the documentation and I still don't understand where or how to add my own code into the save system. I'm trying to implement my own variables for it to save. If anyone knows please let me know.
Re: How to add own code
Posted: Mon Feb 24, 2025 7:03 am
by Tony Li
Hi,
Please see:
How To: Write Custom Savers
If you have any questions about it, please let me know.
Re: How to add own code
Posted: Tue Feb 25, 2025 3:28 am
by Lunarain
Thank you. Where do I add my custom saver?
Re: How to add own code
Posted: Tue Feb 25, 2025 7:37 am
by Tony Li
Add it to a GameObject in the scene. The GameObject should be active. For example, if you wanted to save the player's position in the scene, you'd add the PositionSaver script to the player GameObject.