Search found 17 matches

by Keeko
Thu Feb 18, 2021 3:16 pm
Forum: General Discussion
Topic: Saving and loading components
Replies: 5
Views: 1484

Re: Saving and loading components

the input, output and fuel items just remain the same as they were before.
by Keeko
Thu Feb 18, 2021 2:34 am
Forum: General Discussion
Topic: Picking what values are saved when saving a prefab instance
Replies: 1
Views: 601

Picking what values are saved when saving a prefab instance

I have saved a list of prefab instances, however, there is a lot of information that is being saved for the prefab instances which never change (collision box, scale etc). Is it possible without saving writing the save manually to specify which parts I would like to keep?
by Keeko
Wed Feb 17, 2021 11:29 pm
Forum: General Discussion
Topic: Saving and loading components
Replies: 5
Views: 1484

Saving and loading components

I am saving a component on a game object i have created. This is so I can save the variables and pieces of data under one key like this: CaptureEasysave2.JPG This saves correctly, but it doesn't load correctly. I am using LoadInto like so: ES3.LoadInto(gameObject.name + "_" + guidReference...
by Keeko
Thu Feb 11, 2021 2:29 am
Forum: General Discussion
Topic: Children object being serialised with 2 repeated ID's
Replies: 1
Views: 608

Children object being serialised with 2 repeated ID's

I am serialising some ScriptableObjects. They inherit from my Item scriptable object class. However, when they are being saved their Easy save reference is repeated twice, this isn't causing any issues but it seems like it would just add double the necessary data into the save file. Example image at...
by Keeko
Sun Nov 15, 2020 9:43 pm
Forum: General Discussion
Topic: Do I need to create a parameterless constructor?
Replies: 4
Views: 1196

Re: Do I need to create a parameterless constructor?

Hi, If i didn't want to add a blank constructor, what would I need to do to get this working? protected override void ReadObject<T>(ES3Reader reader, object obj) { var instance = (InventoryItem)obj; foreach(string propertyName in reader.Properties) { switch(propertyName) { case "quantity":...
by Keeko
Sun Nov 15, 2020 9:20 pm
Forum: General Discussion
Topic: Do I need to create a parameterless constructor?
Replies: 4
Views: 1196

Do I need to create a parameterless constructor?

I was creating a custom ES3Type for a list of objects I had called inventoryItem. This inventory item had 1 single constructor that took an int and a serializable object. When I generated the script for it, the read first read method was attempting to create an instance of the InventoryItem with no ...