MCPcopy Create free account
hub / github.com/axmolengine/axmol / removeChildByName

Method removeChildByName

core/2d/Node.cpp:1113–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113void Node::removeChildByName(std::string_view name, bool cleanup)
1114{
1115 AXASSERT(!name.empty(), "Invalid name");
1116
1117 Node* child = this->getChildByName(name);
1118
1119 if (child == nullptr)
1120 {
1121 AXLOGD("axmol: removeChildByName(name = {}): child not found!", name);
1122 }
1123 else
1124 {
1125 this->removeChild(child, cleanup);
1126 }
1127}
1128
1129void Node::removeAllChildren()
1130{

Callers

nothing calls this directly

Calls 3

getChildByNameMethod · 0.95
removeChildMethod · 0.95
emptyMethod · 0.45

Tested by

no test coverage detected