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:
This saves correctly, but it doesn't load correctly.
I am using LoadInto like so:
ES3.LoadInto(gameObject.name + "_" + guidReference + "_itemProducer", this);
Is this the recommended way to load the component state from file and overwrite?
Saving and loading components
Re: Saving and loading components
Hi there,
Please could you explain how it's not loading correctly?
All the best,
Joel
Please could you explain how it's not loading correctly?
All the best,
Joel
Re: Saving and loading components
the input, output and fuel items just remain the same as they were before.
Re: Saving and loading components
I am using a raycast sphere to find objects that are interactable around the player. The component is updating but for whatever reason, when I then interact with the object (a container with items in this case) it is returning the old component state. Does loading a component instance state into itself update the object itself?
Re: Saving and loading components
Actually nevermind i think i have found the issue.
Re: Saving and loading components
Glad you've (hopefully) managed to find the issue. Let me know if you run into any other problems.
All the best,
Joel
All the best,
Joel