Search found 5087 matches

by Joel
Fri Mar 07, 2025 4:45 pm
Forum: General Discussion for Easy Save 3
Topic: Saving prefabs with modified components
Replies: 5
Views: 18091

Re: Saving prefabs with modified components

Glad that's all working for you now Kevin :)

All the best,
Joel
by Joel
Fri Mar 07, 2025 10:55 am
Forum: General Discussion for Easy Save 3
Topic: Saving prefabs with modified components
Replies: 5
Views: 18091

Re: Saving prefabs with modified components

Hi there, I'm now instantiating my objects using PrefabUtility.InstantiatePrefab. This is an Editor method, so you can't use this at runtime outside of the Editor. However, using ES3.LoadInfo or Load does not keep this prefab link All prefab links are intentionally broken by Unity at runtime (regard...
by Joel
Fri Mar 07, 2025 7:07 am
Forum: General Discussion for Easy Save 3
Topic: Saving prefabs with modified components
Replies: 5
Views: 18091

Re: Saving prefabs with modified components

Hi Kevin, sorry to hear you've been encountering issues. 1. Save the actual modified mesh and material instances into the save file. This might be to heavy of a cost, but it would require the least amount of fixup if it can be done with reasonable performance. I recommend checking that you have warn...
by Joel
Fri Mar 07, 2025 6:56 am
Forum: General Discussion for Easy Save 3
Topic: Custom Type Usage
Replies: 2
Views: 1984

Re: Custom Type Usage

Hi there, MyCustomType has just one field, but in the Types Panel another field is also listed "m_CancellationTokenSource". What is the usage of this auto-generated field? This field isn't hardcoded by us and appears to be something to do with threading: https://learn.microsoft.com/en-us/d...
by Joel
Wed Mar 05, 2025 6:58 am
Forum: General Discussion for Easy Save 3
Topic: Loading and Saving a list Serialized script with different variable types
Replies: 3
Views: 3769

Re: Loading and Saving a list Serialized script with different variable types

I am trying to call this list of saved stuff into a new Itemslots list that is empty For this you should be using ES3.Load, not ES3.LoadInto (LoadInto is for loading into a populated list, not an empty list). I.e. itemSlot = ES3.Load<List<ItemSlot>>("itemSlot"); All the best, Joel
by Joel
Tue Mar 04, 2025 9:13 am
Forum: General Discussion for Easy Save 3
Topic: How can i choose what to NOT save?
Replies: 3
Views: 3101

Re: How can i choose what to NOT save?

Right, i didn't know it was under types, and that i need to input the class, as i see, gameobjects are not selected vy default, which is what i want. Thanks! Or you can just use the [ES3NonSerializable] attribute mentioned at the top of the guide if you don't want to implement an ES3Type. All the b...
by Joel
Tue Mar 04, 2025 8:33 am
Forum: General Discussion for Easy Save 3
Topic: How can i choose what to NOT save?
Replies: 3
Views: 3101

Re: How can i choose what to NOT save?

Hi there,

This is covered in the Choosing what is saved guide:
https://docs.moodkie.com/easy-save-3/es ... -is-saved/

All the best,
Joel
by Joel
Tue Mar 04, 2025 6:45 am
Forum: General Discussion for Easy Save 3
Topic: Loading and Saving a list Serialized script with different variable types
Replies: 3
Views: 3769

Re: Loading and Saving a list Serialized script with different variable types

Hi there, Unfortunately it's not possible for me to understand what is happening without more information about how your project is set up. Please could you show me the code you're using to save and load, and the script you're trying to save. I just have a text document of variables and am trying to...
by Joel
Thu Feb 27, 2025 7:18 am
Forum: General Discussion for Easy Save 3
Topic: Best way to save and load Player?
Replies: 2
Views: 4524

Re: Best way to save and load Player?

Hi there, I think there may be an error in your code. You haven't provided the thing you're saving as a parameter to the ES3.Save method, so this code will be saving your filename to the default file: ES3.Save("Farmhand1", filename); Instead you likely want to be doing something like: ES3....
by Joel
Tue Feb 25, 2025 6:43 am
Forum: General Discussion for Easy Save 3
Topic: File corruption on computer crashes
Replies: 3
Views: 4361

Re: File corruption on computer crashes

Hi there, Do i need to load the persistent path files into the cache on startup manually? And also, would I need to store the cached data to local files manually every time I want to save? Correct, you need to call ES3.CacheFile to cache a file, and ES3.StoreCachedFile to store the cached file back ...