Hola community,
currently I wanted to detach a child from an Obj-Model I imported.
For that I first searched the element with
child = node.getChild("name")
That worked fine. getChild is searching recursive the node down until the corresponding child
is found.
detaching is only working on the direct children of the object and is not going down deeper recursively like the getChild does.
node.detachChildNamed("name");
Is that behavior wanted? Acutally it is not a problem for me. I do it now the following way:
child = node.getChild("name");
child.getParent().detachChildNamed("name");
Have a nice day,
ToM