Search found 4816 matches

by Joel
Mon Mar 18, 2024 8:26 am
Forum: General Discussion
Topic: How to build out without build keeping saves?
Replies: 6
Views: 48

Re: How to build out without build keeping saves?

Hi there, Glad you managed to get that working :) To clear your save data on build you would use Unity's OnPreprocessBuild event: https://docs.unity3d.com/ScriptReference/Build.IPreprocessBuildWithReport.OnPreprocessBuild.html This might look something like this: using UnityEditor; using UnityEditor...
by Joel
Sun Mar 17, 2024 8:57 am
Forum: General Discussion
Topic: How to build out without build keeping saves?
Replies: 6
Views: 48

Re: How to build out without build keeping saves?

Hi there, What platform are you building for? If you're building for standalone Windows player then the persistent data folder is the same location as the Windows editor (this is only the case for Windows and all other platforms use separate locations). In this case you would need to manually delete...
by Joel
Tue Mar 12, 2024 8:46 am
Forum: General Discussion
Topic: Saving a list of gameobjects with only floats gives errors
Replies: 2
Views: 26

Re: Saving a list of gameobjects with only floats gives errors

Hi there, Your two ES3.Save calls are using the same key. This means that you're just overwriting the float you're saving with the int you're saving. So when you come to load the float, the data will instead be the int that you've saved, which is why you're getting that error. Usually you would appe...
by Joel
Wed Mar 06, 2024 6:31 pm
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 10
Views: 174

Re: How can i save a list of gameobjects?

Thanks Notso :) @Recktardeded: Just to double-check, have you followed the Saving and Loading GameObjects guide? I had assumed you had, but I suspect you might not have (this is the workflow Notso is describing): https://docs.moodkie.com/easy-save-3/es3-guides/saving-loading-gameobjects-prefabs/ Hel...
by Joel
Tue Mar 05, 2024 6:03 pm
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 10
Views: 174

Re: How can i save a list of gameobjects?

Hi there, I'm not 100% what the purpose of what you're describing would be, but as that's part of your logic I wouldn't be able to assist with that. Also, ES3 Gameobject(for the plant gameobject) would just save just transform, box collider and plant_Data. Does this sound like a propper way to aproa...
by Joel
Mon Mar 04, 2024 5:53 pm
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 10
Views: 174

Re: How can i save a list of gameobjects?

Could you be more specific when you say it doesn't reload: is the script missing from the loaded object, or are it's variables left as their default values? Regarding what fields of a script will be saved, please see the Supported Types and Choosing what is saved guides: https://docs.moodkie.com/eas...
by Joel
Mon Mar 04, 2024 8:27 am
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 10
Views: 174

Re: How can i save a list of gameobjects?

Hi there, but it does not load the variables mannualy assigned as a prefab I'm not sure I understand what this means, please could you clarify? Also as mentioned in the guide, you shouldn't simply select all of the Components on an ES3GameObject unless you know they're serializable and need to be sa...
by Joel
Wed Feb 28, 2024 4:38 pm
Forum: General Discussion
Topic: Saving material Instances
Replies: 1
Views: 68

Re: Saving material Instances

Hi there, For saving the instantiated prefabs themselves you would follow this guide: https://docs.moodkie.com/easy-save-3/es3-guides/saving-loading-gameobjects-prefabs/ With regards to saving the Materials, this section explains what you will need to do: https://docs.moodkie.com/easy-save-3/es3-gui...
by Joel
Tue Feb 27, 2024 4:58 pm
Forum: General Discussion
Topic: Problem with loading when changing data in Scriptable Objects
Replies: 3
Views: 89

Re: Problem with loading when changing data in Scriptable Objects

Glad you managed to resolve your issue, and thanks for the kind review :)
by Joel
Tue Feb 27, 2024 4:02 pm
Forum: General Discussion
Topic: Prefab Error
Replies: 6
Views: 1209

Re: Prefab Error

Hi there, The behaviour they were experiencing was explained by the guide here: https://docs.moodkie.com/easy-save-3/es3-guides/saving-and-loading-references/#reference-could-not-be-found-warning I.e. you can't load a reference to something which doesn't exist. See the guide for information on how t...