Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom resource doesn't save its data after being modified #48072

Open
rockgem opened this issue Apr 21, 2021 · 1 comment
Open

Custom resource doesn't save its data after being modified #48072

rockgem opened this issue Apr 21, 2021 · 1 comment

Comments

@rockgem
Copy link

rockgem commented Apr 21, 2021

Godot version:
3.2.3

Issue description:
So I have this custom resource as a storage for an array of items, but every time I change into any scene the data stored in that custom resource somehow disappears.

Steps to reproduce.
I have found a weird way to get around with it by having the custom resource being referenced to any singleton class. This way, it still holds all values in the array after I added something into it whenever I change between scenes.

Screenshot (28)
Screenshot (29)

@AnidemDex
Copy link

AnidemDex commented Jan 11, 2022

I had a similar issue for dictionaries too (AnidemDex/Godot-EventSystem#23) maybe is related to #55885

Not related, this issue tries to save a variable that is not exported, so the property is not marked as something that be can saved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants