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
Describe the problem or limitation you are having in your project
When I add a node in a group, there is no autocompletion in the divers functions that uses groups.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
When adding a node to a group, Godot will remember the names and save them in the .godot directory. By doing so, when using group methods, it will be able to autocomplete the group's name in the editor.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Autocompletion will be activated when the cursor is on the first parameter of the following methods:
Node.is_in_group()
Node.remove_from_group()
get_tree().get_nodes_in_group()
This is similar to Input.is_action_just_released() and other methods similar to this one. Godot will autocomplete with the input filled according to the project's settings.
If this enhancement will not be used often, can it be worked around with a few lines of script?
I think it will be useful for everyone but I don't know if it can be done using an addon.
Is there a reason why this should be core and not an add-on in the asset library?
It would be lovely to have it in the core, as more developers can benefit from it.
The text was updated successfully, but these errors were encountered:
They have been merged, and as a bonus of the PR, "global" groups appear in the autocomplete suggestions for the Node and SceneTree's group methods. This proposal can be closed now.
Describe the project you are working on
Any projects.
Describe the problem or limitation you are having in your project
When I add a node in a group, there is no autocompletion in the divers functions that uses groups.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
When adding a node to a group, Godot will remember the names and save them in the
.godot
directory. By doing so, when using group methods, it will be able to autocomplete the group's name in the editor.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Autocompletion will be activated when the cursor is on the first parameter of the following methods:
Node.is_in_group()
Node.remove_from_group()
get_tree().get_nodes_in_group()
This is similar to
Input.is_action_just_released()
and other methods similar to this one. Godot will autocomplete with the input filled according to the project's settings.If this enhancement will not be used often, can it be worked around with a few lines of script?
I think it will be useful for everyone but I don't know if it can be done using an addon.
Is there a reason why this should be core and not an add-on in the asset library?
It would be lovely to have it in the core, as more developers can benefit from it.
The text was updated successfully, but these errors were encountered: