-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Add SceneTree.get_node_count_in_group() #78206
Conversation
The documentation needs to be in alphabetical order, you can most easily accomplish this by using Make sure to use |
6010df2
to
bddf246
Compare
done! |
@AThousandShips Is there a possibility to get this reviewed and hopefully merged for 4.2.1? It would really helpful for the project I'm working on. |
Unlikely to be cherry picked I'd say, we mostly cherry pick bugfixes, it'd maybe get into 4.3, and we'd see about 4.2.x, 4.2.1 is a bug fix patch mainly so unlikely to get in that even if it's merged soon |
I build from master regularly so I'll keep an eye if it gets merged. Thanks and sorry to bother you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks! |
Adds a more efficient way to get the number of nodes in specified group.
This extra method is an alternative to a common
get_tree().get_nodes_in_group("group_name").size()
use case, but without creating a redundant array.Closes godotengine/godot-proposals#7080