myNode.removeChildren() in Anark Studio 2.5
Remove all children from this node.
- Return Type
- (none)
Description
Equivalent to doing:
for ( var i=myNode.behaviors.length-1; i>=0; i-- ) myNode.detach( myNode.behaviors[i] );
for ( var i=myNode.sounds.length-1; i>=0; i-- ) myNode.detach( myNode.sounds[i] );
for ( var i=myNode.music.length-1; i>=0; i-- ) myNode.detach( myNode.music[i] );
for ( var i=myNode.cameras.length-1; i>=0; i-- ) myNode.detach( myNode.cameras[i] );
for ( var i=myNode.lights.length-1; i>=0; i-- ) myNode.detach( myNode.lights[i] );
for ( var i=myNode.models.length-1; i>=0; i-- ) myNode.detach( myNode.models[i] );