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

Export Variable's category and grouping (Advanced Exports) with _get_property_list() are not working in Visual Script #44152

Open
archerallstars opened this issue Dec 7, 2020 · 1 comment

Comments

@archerallstars
Copy link

archerallstars commented Dec 7, 2020

Godot version:

  • Godot 3.2.3-stable
  • Godot 3.2.4-beta3
  • Godot 4 @ d834789

OS/device including version:

Screenshot 2020-12-06 201810
Screenshot 2020-12-06 201955

Issue description:

I tried to add categories and groups for my export variables with the _get_property_list() function as documented here. I can do it in GDScript but not in Visual Script with the exact same code.

In Godot 3.2.3-stable and 3.2.4-beta3:
It's not working at all. And when I closed and reopened the project again, the "make tool" button in the Visual Script editor which was previously set to on would always be off after I reopened the project. I can't add any node to the Visual Script editor unless I disconnected the script from the scene node. Otherwise, it will give me this error:
Screenshot 2020-12-05 224842a

In Godot 4 @ d834789:
It works partially as the variable shows up in the inspector tab. However, the category and group don't show up at all:
Screenshot 2020-12-06 201034

I expect it to work like GDScript and doesn't give me errors:
Screenshot 2020-12-06 172752

Steps to reproduce:

  1. Open the script.
  2. Add the _get_property_list() function.
  3. Calling the functions to add categories, groups, and desired properties (variables) to the inspector tab according to the document here.
  4. Check the inspector tab.

Minimal reproduction project:

For Godot 3:
test3.zip

For Godot 4 (since some codes have been changed - tool >>> @ tool):
test4.zip

Edited: Add a new reproduction project for Godot 4 as the old one doesn't compatible with the latest Godot 4 version - v4.0.alpha2.official [79077e6] (the engine would crash with the old project file):

Test4New.zip

@archerallstars
Copy link
Author

archerallstars commented Feb 18, 2022

This issue still presents as of Godot v3.4.3.rc2.official [0ea54d0] and Godot v4.0.alpha2.official [79077e6], as shown in the screen recordings below:

Godot v3.4.3.rc2.official [0ea54d0]:

2022-02-18.02-42-10.mp4

Godot v4.0.alpha2.official [79077e6]:

2022-02-18.02-40-23.mp4

I also upload a new reproduction project for Godot 4 as the old one doesn't compatible with the latest Godot 4 version (the engine would crash):

Test4New.zip

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

4 participants