Replies: 1 comment 5 replies
-
Seems to be some confusion as to where bug reports go? This should be directly in the Godot Engine's issue tracker - https://github.com/godotengine/godot/issues - as this is an engine bug, not a proposal for enhancement or new issues. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version: v4.2.beta1.official [b1371806a]
Not sure if this is a bug or my own misunderstanding. I made a small project to show the issue:
https://gitlab.com/dbat/inner_class_resource_issue
Open issue.tscn and check the code.
The story
I tried to use an inner class like this:
That worked! I was happy. Then I extended things so I could instance Stuff and put that instance into a Dictionary. The idea is that my store.gd script can hold a bunch of 'stuff'.
I then put that into a test scene to see how it behaved. I have another dict in my Node2D script called 'stores'. Pressing the Go checkbox (in the inspector) makes the store, fills it with some data and puts that into stores. Then it prints some data from all that to show it exists.
Then I saved the project and all resources and then closed Godot.
Then I opened Godot again and the data within stuff is missing.
Screenshots
Before closing: Notice id, position and resource within "id001".
After reopening: It's all gone.
Beta Was this translation helpful? Give feedback.
All reactions