Parent Child Saving process
Posted: Fri Sep 03, 2021 6:32 am
Hi there,
I have been trying to use ES3 and ran into some general process questions. The place Im starting from is trying to have an item be stored on a shelf, and trying to adapt how I was coding the systems to work with how ES3 wants to save. I am using the auto save, and have 1 SaveController script that Load() all the dynamic objects, and reassigns with LoadInto() to all the static.
So with that, if I have the shelf and an item, each right now have an auto save script attached, but if the item is placed onto the shelf, I am assigning the item to be a child of the shelf. If I do attach the item to shelf , should I have the item not save itself anymore and let the shelf handle it as a child? Or do I have both items still try to save themselves independently? And then when loading, will the shelf now try to load the item as its child, or do I still want to load the items independently.
Second, is it better to have each item try to save itself, or should they all report to 1 SaveController that then saves everything?
Thank you very much for any help!
I have been trying to use ES3 and ran into some general process questions. The place Im starting from is trying to have an item be stored on a shelf, and trying to adapt how I was coding the systems to work with how ES3 wants to save. I am using the auto save, and have 1 SaveController script that Load() all the dynamic objects, and reassigns with LoadInto() to all the static.
So with that, if I have the shelf and an item, each right now have an auto save script attached, but if the item is placed onto the shelf, I am assigning the item to be a child of the shelf. If I do attach the item to shelf , should I have the item not save itself anymore and let the shelf handle it as a child? Or do I have both items still try to save themselves independently? And then when loading, will the shelf now try to load the item as its child, or do I still want to load the items independently.
Second, is it better to have each item try to save itself, or should they all report to 1 SaveController that then saves everything?
Thank you very much for any help!