Saving state changes on new builds
Posted: Fri Aug 28, 2020 4:56 am
Hello,
I am trying to pinpoint the exact cause of the problem I'm seeing. I've noticed sometimes on a new build, I'll run into alot of errors when loading an existing save from a previous build.
I am saving down the prefabs and a specific component on prefabs that holds all the relevant variables. On load, I load the component, find the prefab the instantiate it into the scene, and copy over the loaded component to the newly instantiated prefab. For the most part this works, but I've noticed when I make a lot of changes to the prefabs, push a new build, any existing saves tend to not find their saved down components or prefabs... I'm really not sure why this would be happening.
Anyone have any insight?
I am trying to pinpoint the exact cause of the problem I'm seeing. I've noticed sometimes on a new build, I'll run into alot of errors when loading an existing save from a previous build.
I am saving down the prefabs and a specific component on prefabs that holds all the relevant variables. On load, I load the component, find the prefab the instantiate it into the scene, and copy over the loaded component to the newly instantiated prefab. For the most part this works, but I've noticed when I make a lot of changes to the prefabs, push a new build, any existing saves tend to not find their saved down components or prefabs... I'm really not sure why this would be happening.
Anyone have any insight?