godot: Script properties coming from `_get_property_list` are no longer shown in inspector
Godot 3.2.4 adf2dabbde23fdd89803871e26dd1d33ca20bf77 Windows 10 64 bits
From report https://github.com/Zylann/godot_heightmap_plugin/issues/216#issuecomment-726427174
My plugin makes extensive use of _get_property_list to add specific hints and categories to its exported variables and make a few dynamic ones appear, which worked in Godot 3.2.3. However, it appears the commit 8a02f221b468056345b7506a463a8c8b529bfb29 now prevents all these properties from appearing.
Godot3 MRP:
CustomPropertyList.zip
Open main scene, select root node. The first property is the only one exported with the export keyword. There are many others supposed to be visible, but in master they aren’t showing up anymore.
Godot4 MRP: https://github.com/godotengine/godot/issues/43491#issuecomment-1001666589
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 20 (17 by maintainers)
Commits related to this issue
- Revert "Add script class categories to EditorInspector." This reverts commit 8a02f221b468056345b7506a463a8c8b529bfb29. This caused regression #43491. — committed to godotengine/godot by akien-mga 4 years ago
- Revert "Add script class categories to EditorInspector." This reverts commit 8a02f221b468056345b7506a463a8c8b529bfb29. This caused regression #43491. — committed to HEAVYPOLY/godot by akien-mga 4 years ago
- Revert "Add script class categories to EditorInspector." This reverts commit 8a02f221b468056345b7506a463a8c8b529bfb29. This caused regression #43491. — committed to schme/godot by akien-mga 4 years ago
@willnationsdev are there any updates on this issue? I was having a similar issue with
exportvars in 3.4, and @crystalwarrior was able to replicate it on its side using the same files as I was using.The error in the console is related to custom classes registered with
class_nameand the script not being able to find them (maybe because the script is loaded before classes registered withclass_nameare added to global scope?), but everything works when you play. Modifying the script and saving it seems to fix this but no clue what should I debug to find where’s the real issue.This is the most related issue to this, since other nodes/resources that this scene is using appends a lot of properties in
_get_property_listhttps://user-images.githubusercontent.com/7025991/145495783-4c382600-3b1e-4122-9ecb-8587e3e47768.mp4