Hello all,
In order to better learn Godot I've decided to start working on some plugins and am currently working on an Item Management system that adds an item creator to the editor that, on item created, appends it in a specifically created array in an automatic autoload script called "ItemManagement".
While in the editor, everything seem to work perfectly: the items are created and added to both the visual database in the editor and in the autoload array. If I debug the process with prints and all everything work perfectly,
The problem is that, when the game starts, the autoload gets instantiated into the remote tree and the array is immediately empty, losing all the data I appended to it in the editor.
Is there any way to prevent this?
I've recorded a little video to better explain this:
Thanks.