Page 1 of 1

Ability to load a property of an object in save data

Posted: Thu Apr 22, 2021 7:04 am
by Joel
Status

Requested

Complexity

4/10

Description

This would allow people to provide a hierarchical key so that they can load properties within saved objects without having to load the entire object. For example:

Code: Select all

var string = ES3.Load<string>( "myKey>myProperty>mySubProperty" );

Re: Ability to load a property of an object in save data

Posted: Mon Nov 27, 2023 1:03 pm
by plague810
I wish more people would see this post and vote to approve it. I'm currently working on a project where I think being able to assign a key to an Auto Save prefab instance would be a great way to easily load them into different scenes using ES3.Load. I have a lot of car prefabs that can be customized by the player (color, upgrades, etc.) and they are setup to use Auto Save. there will be duplicate instances of these cars with different customizations and I want to be able to load them from the Persistent Data Path save file and instantiate them into any scene. But now I might have to end up changing the prefab instances to save manually just to be able to set a key on it for later use.