Search found 6 matches
- Fri Jun 02, 2023 10:32 pm
- Forum: General Discussion
- Topic: Saving only certain Components, custom
- Replies: 9
- Views: 1455
Re: Saving only certain Components, custom
Thanks for all your prompt replies!
- Fri Jun 02, 2023 8:26 pm
- Forum: General Discussion
- Topic: Saving only certain Components, custom
- Replies: 9
- Views: 1455
Re: Saving only certain Components, custom
Update: I spoke too soon. I've managed to achieve the result I want. Here's my final setup: 1. Every object (prefab) that should be saved has a SaveObject component and an ES3AutoSave component. For all such prefabs, select "Enable Easy Save for Prefab" via the context menu (which adds an ...
- Fri Jun 02, 2023 7:09 pm
- Forum: General Discussion
- Topic: Saving only certain Components, custom
- Replies: 9
- Views: 1455
Re: Saving only certain Components, custom
have you followed the following instruction from the guide? 1. Right-click the prefab and select Enable Easy Save for Prefab. Yes. you should be saving a List<GameObject> I see, so to save a list of GameObjects, they have to be a top-level key passed to ES3.Save? I've just tried that, and now it is...
- Thu Jun 01, 2023 8:22 pm
- Forum: General Discussion
- Topic: Saving only certain Components, custom
- Replies: 9
- Views: 1455
Re: Saving only certain Components, custom
If they exist on a prefab then this would indicate that they are instantiated at runtime Ah sorry, I thought you were asking if the Components were being added programmatically (which is not the case). You are correct. In your case you should be saving and loading the prefab instance itself That's ...
- Wed May 31, 2023 5:49 pm
- Forum: General Discussion
- Topic: Saving only certain Components, custom
- Replies: 9
- Views: 1455
Re: Saving only certain Components, custom
are your SaveObject Components created at runtime No, all components statically exist on the object prefabs. The data I want to save is: - a reference to a toplevel prefab, which is instantiated on load directly from the prefab (if the prefab changes after a save is made, I want the new prefab to b...
- Tue May 30, 2023 10:56 pm
- Forum: General Discussion
- Topic: Saving only certain Components, custom
- Replies: 9
- Views: 1455
Saving only certain Components, custom
I'm trying to get ES3 to save a list of objects that - have a reference to the prefab that instantiated them (using AssetReference to point to the prefab) - have a list of components that need to be saved (only certain components have data to persist) I've tried a number of different methods and not...