Hello, I'm currently trying to save items across multiple scenes. Each item acts as a folder and has numerous children, and each child has a simple script.
My current approach to doing this is searching for all folder objects by a tag, and ES3.Save/ES3.LoadInto them. However, I've come across an issue where on load, the children objects that are instantiated are missing their script. I've read the guides "Saving and loading GameObjects and Prefabs" and "Choosing What Is Saved", but I'm still having a hard time knowing how to get the script to be saved if the objects themselves are instantiated during runtime.
I'm also getting the error: "FormatException: Stream isn't positioned before a property," and I'm not sure if this is connected.
I would really appreciate any help with how to proceed with getting the scripts to appear properly.
Loading GameObjects with scripts
Re: Loading GameObjects with scripts
Hi there, and thanks for getting in contact.
Please could you replicate this issue in a new project with a simple scene and private message it to me with instructions.
All the best,
Joel
Please could you replicate this issue in a new project with a simple scene and private message it to me with instructions.
All the best,
Joel
-
- Posts: 5
- Joined: Thu Mar 31, 2022 7:11 am
Re: Loading GameObjects with scripts
I have sent you a PM.