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
Issue description:
There are quite a bunch of old issues present with inst2dict and dict2inst that it's worth to add a tracker for it. I'm currently working on some of them.
The content you are editing has changed. Please copy your edits and refresh the page.
I think it would be best if these fixes could be reviewed in order so that smaller fixes can be rebased on top of bigger ones more easily if deemed satisfactory:
A class de-serialised with dict2inst fails if the class has moved it's path. A classes ability to be de-serialised should not be linked to it's path. I do get this might require a re-write to the entire gdscript language to force class names.
@capnm I think you could open an issue about this at godot-docs. It fails to search the class ref for some reason. I've stumbled upon this with other keywords if I recall correctly.
@nhold you could open a separate issue and/or proposal to discuss the best way to implement it first. But it feels like this could be solved relatively easy by writing global class name to dictionary along with script path. Edit: see possible implementation at #33360.
Anyways, added to Other issues section because they currently have no home.
Godot version:
3.2, 4.0+
Issue description:
There are quite a bunch of old issues present with
inst2dict
anddict2inst
that it's worth to add a tracker for it. I'm currently working on some of them.Issues
inst2dict
does not work with objects having no script on them #30077Other issues
Orphan issues or which need more discussion.
dict2inst
fails if the class has moved it's path: [TRACKER] inst2dict and dict2inst related issues #33348 (comment).docs
: Fix the accessibility of the online API docs: [TRACKER] inst2dict and dict2inst related issues #33348 (comment).Fixes
I think it would be best if these fixes could be reviewed in order so that smaller fixes can be rebased on top of bigger ones more easily if deemed satisfactory:
inst2dict
calling to getters to retrieve value #33018dict2inst
to work with arbitrary_init
parameters #32534dict2inst
to create an instance from a global class name #33360They could as well be targeted for 4.0 but see for yourself.
CC @vnen @bojidar-bg.
The text was updated successfully, but these errors were encountered: