Save System - Day/Night Cycle

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
CruttMutt
Posts: 41
Joined: Wed May 06, 2020 9:44 am

Save System - Day/Night Cycle

Post by CruttMutt »

Hey Tony,

I was wondering if you would have any suggestions to how I would enable to the save system to save the current state of my Enviro plug in to save the time of day/day#... ect. If can't quite wrap my head around the best way to do it or which component might work best. If I can get the values from the variables in the scripts, how can I have them saved so they can be re-read on load? Or can this not be done if it is not officially integrated?

Cheers!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save System - Day/Night Cycle

Post by Tony Li »

Hi,

Enviro isn't officially integrated, but it's just a matter of writing a Saver script and adding it to the scene. Make sure you've also set up the save system of course. To write a Saver script, copy the file Plugins / Pixel Crushers / Common / Templates / SaverTemplate.cs, rename it and move it outside the Plugins folder, and fill in the code where the comments indicate.
CruttMutt
Posts: 41
Joined: Wed May 06, 2020 9:44 am

Re: Save System - Day/Night Cycle

Post by CruttMutt »

Thank you so much! This will come in handy for a lot of things.

Appreciate it!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save System - Day/Night Cycle

Post by Tony Li »

Glad to help!
Post Reply