Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

New hierarchy traversing functions #5852

NewboO started this conversation in Ideas
Discussion options

Follow-up of #4603

Currently we have GraphNode.find, GraphNode.findOne and GraphNode.forEach to traverse a specific node (included) and all its descendants. The first two are also used in Entity.findComponent and Entity.findComponents (and possibly Entity.findScript and Entity.findScripts if #5851 is accepted and merged).

The main idea is to add the same functions for ancestors but in the original PR, we were debating about whether these functions should include the current node or not. This led to also add function for descendants only (thus excluding current node), the same way GraphNode.findByTag and GraphNode.findByPath currently work.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.