How to add own code

Announcements, support questions, and discussion for Save System for Opsive Character Controllers.
Post Reply
Lunarain
Posts: 2
Joined: Mon Feb 24, 2025 2:53 am

How to add own code

Post 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.
User avatar
Tony Li
Posts: 22845
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to add own code

Post by Tony Li »

Hi,

Please see: How To: Write Custom Savers

If you have any questions about it, please let me know.
Lunarain
Posts: 2
Joined: Mon Feb 24, 2025 2:53 am

Re: How to add own code

Post by Lunarain »

Thank you. Where do I add my custom saver?
User avatar
Tony Li
Posts: 22845
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to add own code

Post 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.
Post Reply