You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I have a question about the design of the library.
Why it doesn't save nested field resources automatically? It saves resources inside array but not single fields.
I have this class:
class_name GameSave extends Resource
var _active_slot_id : OptionR
var _slots : Array[GameSlotSave]
OptionR and GameSlotSave are resources. The array is being stored correctly but OptionR is saved as "_active_slot_id": "<Resource#-9223369771041419952>"
I know I can set it manually by using set_var("game_save:active_slot_id", some_variant) but I don't see any reason why resource cannot be serialized properly. Am I missing something?
The text was updated successfully, but these errors were encountered:
Hello, sorry for the late response. I can't seem to reproduce this, as the test save resources we use also have both just a resource and a resource array, and those are saved properly, automatically.
If you send me your project, I'm happy to investigate it.
Hey,
I have a question about the design of the library.
Why it doesn't save nested field resources automatically? It saves resources inside array but not single fields.
I have this class:
OptionR and GameSlotSave are resources. The array is being stored correctly but OptionR is saved as "_active_slot_id": "<Resource#-9223369771041419952>"
I know I can set it manually by using set_var("game_save:active_slot_id", some_variant) but I don't see any reason why resource cannot be serialized properly. Am I missing something?
The text was updated successfully, but these errors were encountered: