Loading GameObjects with scripts

Discussion and help for Easy Save 3
Post Reply
CharlesKleeven
Posts: 5
Joined: Thu Mar 31, 2022 7:11 am

Loading GameObjects with scripts

Post by CharlesKleeven »

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.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Loading GameObjects with scripts

Post by Joel »

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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
CharlesKleeven
Posts: 5
Joined: Thu Mar 31, 2022 7:11 am

Re: Loading GameObjects with scripts

Post by CharlesKleeven »

I have sent you a PM.
Post Reply