Skip to content

Commit

Permalink
Update migrate-v4.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Nov 23, 2024
1 parent ef2cf74 commit 4344d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/migrate-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static Result<std::shared_ptr<SettingV3>> parse(std::string const&, std::string
## Changes to `getChildOfType`
* Deprecated in 3.9.0, and now removed, use `CCNode::getChildByType<T>(int index)` instead:
* `getChildOfType<CCLayer>(node, 1)` -> `node->getChildByType<CCLayer*>(1)`
* `getChildOfType<CCLayer>(node, 1)` -> `node->getChildByType<CCLayer>(1)`
* You can use this regex pattern to quickly find and replace:
* `getChildOfType<(.+?)>\((.+?),\s*(.+?)\)` and replace with `$2->getChildByType<$1>($3)`
Expand Down

0 comments on commit 4344d47

Please sign in to comment.