Skip to content

add CCNode::getChildByIndex#1454

Merged
dankmeme01 merged 2 commits intogeode-sdk:mainfrom
nytelytee:get-child-by-index
Jul 30, 2025
Merged

add CCNode::getChildByIndex#1454
dankmeme01 merged 2 commits intogeode-sdk:mainfrom
nytelytee:get-child-by-index

Conversation

@nytelytee
Copy link
Contributor

The free function getChild, copied into CCNode as CCNode::getChildByIndex, in a similar fashion to how getChildOfType was moved into CCNode as CCNode::getChildByType.

On the next major release, I would recommend removing the free function getChild (just like getChildOfType was removed), and potentially maybe renaming CCNode::getChildByIndex to CCNode::getChild; I chose not to name it like so now because it seems to break compilation on mods that use the free getChild function, without qualifying it like ::getChild, unless, of course, you think CCNode::getChildByIndex is a better name than CCNode::getChild and can stay.

@dankmeme01 dankmeme01 merged commit 0ba1f2a into geode-sdk:main Jul 30, 2025
6 checks passed
@nytelytee nytelytee deleted the get-child-by-index branch July 30, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants